|
|
@ -153,7 +153,8 @@ class Playhead(QtWidgets.QGraphicsLineItem): |
|
|
|
scenePos = self.parentScoreScene.parentView.mapFromScene(self.pos()) |
|
|
|
cursorViewPosX = scenePos.x() #the cursor position in View coordinates |
|
|
|
width = self.parentScoreScene.parentView.geometry().width() |
|
|
|
if cursorViewPosX <= 0 or cursorViewPosX >= width: #"pageflip" |
|
|
|
offset = api.D1 / constantsAndConfigs.ticksToPixelRatio |
|
|
|
if cursorViewPosX <= 0 or cursorViewPosX >= width-offset: #"pageflip" with offset to show the last measure (or so) twice |
|
|
|
self.parentScoreScene.parentView.horizontalScrollBar().setValue(int(x * constantsAndConfigs.zoomFactor)) |
|
|
|
|
|
|
|
|
|
|
|