Skip to content

Commit

Permalink
[#59] TrackEditor: Improvements and bugfixes (Part 78: Fixed Part 75 …
Browse files Browse the repository at this point in the history
…regarding mouse wheel)
  • Loading branch information
tomas-nestorovic committed Sep 23, 2023
1 parent f0d2b3e commit 09ed790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Main/src/Image_TrackEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@
case WM_MOUSEWHEEL:{
// mouse wheel was rotated
if (::GetAsyncKeyState(VK_CONTROL)>=0){ // if Ctrl+W NOT pressed
SetScrollTime( GetCenterTime() );
const TLogTime dt=(scrollTime-GetCenterTime())*(short)HIWORD(wParam)/WHEEL_DELTA;
SetScrollTime( scrollTime+dt );
return 0;
}
POINT cursor;
Expand Down

0 comments on commit 09ed790

Please sign in to comment.