MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / wheelEvent

Method wheelEvent

python/examples/triage/byte.py:522–529  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

520 render.drawText(p, 2 + (self.addrWidth + 2 + cursorCol) * charWidth, 2 + y * charHeight, caretTextColor, byteStr)
521
522 def wheelEvent(self, event):
523 if event.orientation() == Qt.Horizontal:
524 return
525 self.wheelDelta -= event.delta()
526 if (self.wheelDelta <= -40) or (self.wheelDelta >= 40):
527 lines = self.wheelDelta // 40
528 self.wheelDelta -= lines * 40
529 self.scrollLines(lines)
530
531 def scrollBarMoved(self, value):
532 if self.updatingScrollBar:

Callers

nothing calls this directly

Calls 1

scrollLinesMethod · 0.95

Tested by

no test coverage detected