Skip to content

Commit

Permalink
[#59] TrackEditor: Improvements and bugfixes (Part 75: Mouse wheel al…
Browse files Browse the repository at this point in the history
…one used for scrolling, but with Ctrl used for zooming)
  • Loading branch information
tomas-nestorovic committed Jun 22, 2023
1 parent fe600ae commit 19a272b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Main/src/Image_TrackEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@
break;
case WM_MOUSEWHEEL:{
// mouse wheel was rotated
if (::GetAsyncKeyState(VK_CONTROL)>=0){ // if Ctrl+W NOT pressed
SetScrollTime( GetCenterTime() );
return 0;
}
POINT cursor;
::GetCursorPos(&cursor);
ScreenToClient(&cursor);
Expand Down

0 comments on commit 19a272b

Please sign in to comment.