Skip to content

Commit

Permalink
fixup! NumericWidget : Mouse wheel adjust value
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Sep 18, 2024
1 parent 388b53d commit bf58867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/GafferUI/NumericWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def __wheel( self, widget, event ) :

assert( widget is self )

if not self.getEditable() :
if not self.getEditable() or not self._qtWidget().hasFocus() or event.modifiers != GafferUI.ModifiableEvent.Modifiers.Control :
return False

self.__incrementIndex( self.getCursorPosition(), int( math.copysign( 1, event.wheelRotation ) ) )
Expand Down

0 comments on commit bf58867

Please sign in to comment.