xpra icon
Bug tracker and wiki

Opened 9 months ago

Closed 2 months ago

#1390 closed defect (fixed)

osx trackpad sends too many events with HTML5 client

Reported by: Antoine Martin Owned by: alas
Priority: major Milestone: 2.0
Component: html5 Version: trunk
Keywords: Cc:

Description

See ticket:1341#comment:15: OSX laptop tracpad events result in dizzyingly & unmanageably fast scrolling (something about the tracpad sending more events with a smaller delta, apparently)

Change History (2)

comment:1 Changed 7 months ago by Antoine Martin

Owner: changed from Antoine Martin to alas

Tablet devices should be handled much better than before.

We normalize the wheel event values using the facebook code found here: normalizeWheel.js : r15253.
And we try to send one event for each javascript wheel event we receive, unless those are very coarse or fine grained (from a tablet?): r15255.

With debug enabled, the Javascript console shows that on Linux I'm getting a delta of 120 per event with Firefox, and ~156 for google chrome..
We'll be able to handle this a lot better once we implement extended input device support (#173)

Links:


@afarr: I don't have the required hardware to test.

comment:2 Changed 2 months ago by alas

Resolution: fixed
Status: newclosed

Testing against a fedora 25 2.1 r16421 server, with OSX 10.12 laptop (with tracpad) using chrome 57 (still running old version in case of need to test some more certs?).

Tracpad behavior is very well handled. Couldn't tell any difference in scrolling handling vs. a mouse with a windows 7 html5 client.

I do notice some tearing/'striping' at times when scrolling though (I know, for another ticket) as well as an issue when I hit a ping timeout and the client reconnected - it ran into 'invalid packet type' error (already made #1586 for this issue).

This one looks good though. Closing.

Note: See TracTickets for help on using tickets.