diff --git a/syncview.cc b/syncview.cc index 95c5639..17a7aab 100644 --- a/syncview.cc +++ b/syncview.cc @@ -159,7 +159,9 @@ void T_SyncViewImpl_::sequencerWidget( ) noexcept } const bool active( GetCurrentContext( )->ActiveId == seqId ); - if ( active ) { + if ( hovered && !active && io.MouseWheel != 0 ) { + zoomLevel = ImSaturate( zoomLevel + .025 * io.MouseWheel ); + } else if ( active ) { if ( io.MouseDown[ 0 ] ) { const float p{ io.MousePos.x - bbAll.Min.x + startPixel }; auto& sync( Globals::Sync( ) );