Increase wheel step threshold

The previous value made the detection too sensitive and it was very
difficult to scroll precisely. A value of 50 pixels should give similar
behaviour to systems that don't do fine grained scrolling.
This commit is contained in:
Pierre Ossman
2020-06-10 14:12:22 +02:00
committed by Samuel Mannehed
parent f84bc57bda
commit 88589a44f7
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -2978,12 +2978,12 @@ describe('Remote Frame Buffer Protocol Client', function () {
});
it('should accumulate wheel events if small enough', function () {
sendWheelEvent(10, 10, 0, 4);
sendWheelEvent(10, 10, 0, 4);
sendWheelEvent(10, 10, 0, 20);
sendWheelEvent(10, 10, 0, 20);
expect(pointerEvent).to.not.have.been.called;
sendWheelEvent(10, 10, 0, 4);
sendWheelEvent(10, 10, 0, 20);
expect(pointerEvent).to.have.been.calledTwice;
expect(pointerEvent.firstCall).to.have.been.calledWith(client._sock,
@@ -3003,7 +3003,7 @@ describe('Remote Frame Buffer Protocol Client', function () {
});
it('should handle line based wheel event', function () {
sendWheelEvent(10, 10, 0, 1, 1);
sendWheelEvent(10, 10, 0, 3, 1);
expect(pointerEvent).to.have.been.calledTwice;
expect(pointerEvent.firstCall).to.have.been.calledWith(client._sock,
@@ -3013,7 +3013,7 @@ describe('Remote Frame Buffer Protocol Client', function () {
});
it('should handle page based wheel event', function () {
sendWheelEvent(10, 10, 0, 1, 2);
sendWheelEvent(10, 10, 0, 3, 2);
expect(pointerEvent).to.have.been.calledTwice;
expect(pointerEvent.firstCall).to.have.been.calledWith(client._sock,