account for alternate mouse wheel value
@@ -242,7 +242,7 @@ class ProgramWindow(app.window.ActiveWindow):
window.mouseClick(
mouseRow, mouseCol, bState & curses.BUTTON_SHIFT,
bState & curses.BUTTON_CTRL, bState & curses.BUTTON_ALT)
- elif bState & curses.BUTTON2_PRESSED:
+ elif bState & (curses.BUTTON2_PRESSED | 0x200000):
window.mouseWheelUp(bState & curses.BUTTON_SHIFT,
bState & curses.BUTTON_CTRL,
bState & curses.BUTTON_ALT)
@@ -275,10 +275,11 @@ class ProgramWindow(app.window.ActiveWindow):
bState & curses.BUTTON_CTRL, bState & curses.BUTTON_ALT)
elif bState & curses.BUTTON4_RELEASED:
# Mouse drag or mouse wheel movement done.
+ app.log.mouse("BUTTON4_RELEASED")
pass
else:
app.log.mouse('got bState', app.curses_util.mouseButtonName(bState),
- bState)
+ hex(bState))
self.savedMouseWindow = window
self.savedMouseX = mouseCol
self.savedMouseY = mouseRow
