mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 06:34:36 +00:00
Add touchpad support for frames overview.
This commit is contained in:
parent
29b9d8ffe5
commit
5eb724f34c
@ -1832,11 +1832,13 @@ void View::DrawFrames()
|
||||
|
||||
if( hover )
|
||||
{
|
||||
if( IsMouseDragging( 1 ) )
|
||||
const auto hwheel_delta = io.MouseWheelH * 100.f;
|
||||
if( IsMouseDragging( 1 ) || hwheel_delta != 0 )
|
||||
{
|
||||
m_viewMode = ViewMode::Paused;
|
||||
m_viewModeHeuristicTry = false;
|
||||
const auto delta = GetMouseDragDelta( 1 ).x;
|
||||
auto delta = GetMouseDragDelta( 1 ).x;
|
||||
if( delta == 0 ) delta = hwheel_delta;
|
||||
if( abs( delta ) >= fwidth )
|
||||
{
|
||||
const auto d = (int)delta / fwidth;
|
||||
|
Loading…
Reference in New Issue
Block a user