We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99677ea commit c2e30e6Copy full SHA for c2e30e6
Sources/MacOSAppSupport/MAS_NodeEditorNSViewControl.mm
@@ -118,8 +118,8 @@ - (void) scrollWheel : (NSEvent*) event
118
{
119
NUIE::NodeEditor* nodeEditor = nodeEditorControl->GetNodeEditor ();
120
NUIE::ModifierKeys modifierKeys = MAS::GetModifierKeysFromEvent (event);
121
- int deltaX = [event scrollingDeltaX];
122
- int deltaY = [event scrollingDeltaY];
+ float deltaX = [event scrollingDeltaX];
+ float deltaY = [event scrollingDeltaY];
123
if ([event subtype] == NSEventSubtypeMouseEvent || [event modifierFlags] & NSEventModifierFlagOption) {
124
NUIE::Point position = MAS::GetViewPositionFromEvent (self, event);
125
NUIE::MouseWheelRotation rotation = NUIE::MouseWheelRotation::Forward;
0 commit comments