1
0
Fork 0

Remove ‘X Double-scroll’ workaround

Remove this since it’s causing some other issues, let’s see if it
really still an issue on different platforms.
This commit is contained in:
James Turner 2019-06-03 11:54:13 +01:00
parent ea24bd6341
commit ff009bc58f

View file

@ -14,10 +14,6 @@
#include "WindowSystemAdapter.hxx"
#include "renderer.hxx"
#if !defined(X_DISPLAY_MISSING)
#define X_DOUBLE_SCROLL_BUG 1
#endif
#ifdef SG_MAC
// hack - during interactive resize on Mac, OSG queues and then flushes
// a large number of resize events, without doing any drawing.
@ -174,11 +170,7 @@ bool FGEventHandler::handle(const osgGA::GUIEventAdapter& ea,
case osgGA::GUIEventAdapter::SCROLL:
{
bool mainWindow = eventToViewport(ea, us, x, y);
#ifdef X_DOUBLE_SCROLL_BUG
scrollButtonPressed = !scrollButtonPressed;
if (!scrollButtonPressed) // Drop the button release event
return true;
#endif
int button;
if (ea.getScrollingMotion() == osgGA::GUIEventAdapter::SCROLL_2D) {
if (ea.getScrollingDeltaY() > 0)