@@ -2703,12 +2703,6 @@ def centerOnPlayhead(self):
2703
2703
# Execute JavaScript to center the timeline
2704
2704
self .run_js (JS_SCOPE_SELECTOR + '.centerOnPlayhead();' )
2705
2705
2706
- @pyqtSlot ()
2707
- def scrollLeft (self , scroll_value ):
2708
- """ --------------------------- """
2709
- # Execute JavaScript to -----------------
2710
- self .run_js (JS_SCOPE_SELECTOR + '.scrollLeft(%s);' % int (scroll_value ))
2711
-
2712
2706
@pyqtSlot (int )
2713
2707
def SetSnappingMode (self , enable_snapping ):
2714
2708
""" Enable / Disable snapping mode """
@@ -2787,18 +2781,13 @@ def update_zoom(self, newValue):
2787
2781
get_app ().updates .update (["scale" ], newScale )
2788
2782
get_app ().updates .ignore_history = False
2789
2783
2790
- # Capture wheel event to alter zoom slider control or to use SHIFT+scroll for horizontal scroll
2784
+ # Capture wheel event to alter zoom slider control
2791
2785
def wheelEvent (self , event ):
2792
2786
if int (QCoreApplication .instance ().keyboardModifiers () & Qt .ControlModifier ) > 0 :
2793
2787
# For each 120 (standard scroll unit) adjust the zoom slider
2794
2788
tick_scale = 120
2795
2789
steps = int (event .angleDelta ().y () / tick_scale )
2796
2790
self .window .sliderZoom .setValue (self .window .sliderZoom .value () - self .window .sliderZoom .pageStep () * steps )
2797
- elif int (QCoreApplication .instance ().keyboardModifiers () & Qt .ShiftModifier ) > 0 :
2798
- # For each 120 (standard scroll unit) scroll horizontally
2799
- tick_scale = 120
2800
- steps = int (event .angleDelta ().y () / tick_scale )
2801
- self .scrollLeft (- steps * 100 )
2802
2791
else :
2803
2792
# Otherwise pass on to implement default functionality (scroll in QWebEngineView)
2804
2793
super (type (self ), self ).wheelEvent (event )
0 commit comments