put back a check that might be useful for some hardware/GTK combinations.

presentation
JJones780 7 years ago
parent 4f3b84a18e
commit ced056eea6
  1. 8
      src/gui/inputdevices/InputSequence.cpp

@ -13,6 +13,7 @@
#include "model/Point.h" #include "model/Point.h"
#include <Util.h> #include <Util.h>
#include <cmath>
InputSequence::InputSequence(NewGtkInputDevice* inputHandler) InputSequence::InputSequence(NewGtkInputDevice* inputHandler)
@ -153,6 +154,13 @@ void InputSequence::handleScrollEvent()
// scrolling changes window relative coordinates // scrolling changes window relative coordinates
// see github Gnome/evince@1adce5486b10e763bed869 // 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) if (scrollOffsetX == 0 && scrollOffsetY == 0)
{ {
scrollOffsetX = lastMousePositionX - rootX; scrollOffsetX = lastMousePositionX - rootX;

Loading…
Cancel
Save