Sequencer - Mouse wheel behaviour changed
* Wheeling will scroll vertically * Shift+Wheeling will zoom in/out
This commit is contained in:
parent
56416abdb8
commit
823dc5275b
1 changed files with 7 additions and 1 deletions
|
@ -631,7 +631,13 @@ void T_SyncViewImpl_::sequencerWidget( ) noexcept
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( io.MouseWheel != 0 ) {
|
if ( io.MouseWheel != 0 ) {
|
||||||
|
if ( io.KeyShift ) {
|
||||||
zoomLevel = ImSaturate( zoomLevel + .025 * io.MouseWheel );
|
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 ) ) {
|
if ( bbDisplay.Contains( io.MousePos ) ) {
|
||||||
displayTooltips( mTime );
|
displayTooltips( mTime );
|
||||||
|
|
Loading…
Reference in a new issue