mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Viewport: Fix a scrolling bug when internal components have a transform applied
This commit is contained in:
parent
169a6f2d08
commit
5938796f43
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ struct Viewport::DragToScrollListener : private MouseListener,
|
|||
if (e.source == scrollSource
|
||||
&& ! doesMouseEventComponentBlockViewportDrag (e.eventComponent))
|
||||
{
|
||||
auto totalOffset = e.getOffsetFromDragStart().toFloat();
|
||||
auto totalOffset = e.getEventRelativeTo (&viewport).getOffsetFromDragStart().toFloat();
|
||||
|
||||
if (! isDragging && totalOffset.getDistanceFromOrigin() > 8.0f && viewportWouldScrollOnEvent (&viewport, e.source))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue