|
|
|
|
@ -13,6 +13,7 @@ |
|
|
|
|
#include "model/Point.h" |
|
|
|
|
|
|
|
|
|
#include <Util.h> |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InputSequence::InputSequence(NewGtkInputDevice* inputHandler) |
|
|
|
|
@ -153,6 +154,13 @@ void InputSequence::handleScrollEvent() |
|
|
|
|
// scrolling changes window relative coordinates
|
|
|
|
|
// see github Gnome/evince@1adce5486b10e763bed869
|
|
|
|
|
|
|
|
|
|
// GTK handles event compression/filtering differently between versions - this may be needed on certain hardware/GTK combinations.
|
|
|
|
|
if (std::abs(lastMousePositionX - rootX) < 0.1 && std::abs( lastMousePositionY - rootY) < 0.1 ) |
|
|
|
|
{ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (scrollOffsetX == 0 && scrollOffsetY == 0) |
|
|
|
|
{ |
|
|
|
|
scrollOffsetX = lastMousePositionX - rootX; |
|
|
|
|
|