Sequencer - Mouse wheel behaviour changed

* Wheeling will scroll vertically
* Shift+Wheeling will zoom in/out
This commit is contained in:
Emmanuel BENOîT 2017-11-27 18:42:08 +01:00
parent 56416abdb8
commit 823dc5275b

View file

@ -631,7 +631,13 @@ void T_SyncViewImpl_::sequencerWidget( ) noexcept
return;
}
if ( io.MouseWheel != 0 ) {
if ( io.KeyShift ) {
zoomLevel = ImSaturate( zoomLevel + .025 * io.MouseWheel );
} else {
vScroll = ImMax( 0.f ,
ImMin( vScroll - 3.f * io.MouseWheel ,
totalHeight - bbDisplay.GetHeight( ) ) );
}
}
if ( bbDisplay.Contains( io.MousePos ) ) {
displayTooltips( mTime );