mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix for an edge-case where dragging within a triple-click would trigger a false double-click
This commit is contained in:
parent
21b1ba0e94
commit
67ab6a562c
1 changed files with 2 additions and 5 deletions
|
|
@ -351,13 +351,10 @@ public:
|
|||
|
||||
int getNumberOfMultipleClicks() const noexcept
|
||||
{
|
||||
int numClicks = 0;
|
||||
int numClicks = 1;
|
||||
|
||||
if (mouseDowns[0].time != Time())
|
||||
if (! hasMouseMovedSignificantlySincePressed())
|
||||
{
|
||||
if (! mouseMovedSignificantlySincePressed)
|
||||
++numClicks;
|
||||
|
||||
for (int i = 1; i < numElementsInArray (mouseDowns); ++i)
|
||||
{
|
||||
if (mouseDowns[0].canBePartOfMultipleClickWith (mouseDowns[i], MouseEvent::getDoubleClickTimeout() * jmin (i, 2)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue