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:
parent
ea24bd6341
commit
ff009bc58f
1 changed files with 1 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue