|
From: Pablo L. S. <pa...@ke...> - 2018-09-26 19:57:33
|
Very interesting! However something is wrong: it scrolls the page right to the bottom and I can't scroll back up. I noticed that scroll is slower when the pan is activated from the upper edge of the tablet. So maybe the middle point is right on the top edge? ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, September 26, 2018 10:51 AM, Jason Gerecke kil...@gm... wrote: > Recent versions of the xf86-input-wacom driver support a "pan" action > that translates pen drags into mousewheel scrolls. Its not exactly > what you want (no kinetic scrolling), but is closer to the desired > experience. You can run e.g. xsetwacom set <id> button 2 pan to > cause up/down and left/right scroll events to be sent whenever the pen > is dragged while button 2 is held. See man xsetwacom and search for > "pan". > Jason > --------------------------------------------------------------- > > Now instead of four in the eights place / > you’ve got three, ‘Cause you added one / > (That is to say, eight) to the two, / > But you can’t take seven from three, / > So you look at the sixty-fours.... > On Wed, Sep 26, 2018 at 1:11 AM Pablo López Soriano pa...@ke... wrote: > >> Thanks Peter. >> Evince actually has this feature. I mentioned to give example :) >> How about emulating a touchscreen? Gtk+ has this "kinetic-scrolling" property that switches ON when detecting a touchscreen display. https://developer.gnome.org/gtk3/stable/GtkScrolledWindow.html#gtk-scrolled-window-get-kinetic-scrolling >> -------- Original Message -------- >> On 26 Sep 2018, 01:41, Peter Hutterer < pet...@wh...> wrote: >> On Tue, Sep 25, 2018 at 08:30:16PM +0000, Pablo López Soriano wrote: >> >>> Hello everyone \o/ >>> My goal is to get scrolling with the Stylus as good as the one in Evince >>> (Document Viewer). On Evince, Middle Mouse Button grabs the page and uses >>> kinetic scrolling to drag it around. I tried solutions like EasyStroke but >>> it's far from ideal. >>> After much unfruitful searching, I had an idea: Could we remap a Sylus >>> button (or the MMB) to send the "two-finger scroll" event in X11? >>> Another idea is to make X11 believe the Stylus input is a Touchscreen. >>> Then, GTK+ apps would scroll as if swiping a finger. >>> I'm using Fedora 28 with GNOME 3.28. >> >> honestly, all you'd be doing here is to add a hack on the lower levels to >> trick the upper levels into doing what you want. The devil's in the details >> here too because scroll motion can have different coordinate spaces than >> normal motion, so simple 1:1 translation may not work. You may be fixing >> Evince this way, but some other application may require some different >> interaction/movement/etc. >> I recommend to push for adding the button+move == scroll ability in GTK >> instead, or Evince directly. >> Cheers, >> Peter >> Linuxwacom-discuss mailing list >> Lin...@li... >> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss |