mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added Line::toFloat(). Fix for scrollbar edge-case.
This commit is contained in:
parent
56097bf314
commit
3c83383d0e
2 changed files with 7 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ void ScrollBar::mouseDrag (const MouseEvent& e)
|
|||
{
|
||||
const int mousePos = vertical ? e.y : e.x;
|
||||
|
||||
if (isDraggingThumb && lastMousePos != mousePos)
|
||||
if (isDraggingThumb && lastMousePos != mousePos && thumbAreaSize > thumbSize)
|
||||
{
|
||||
const int deltaPixels = mousePos - dragStartMousePos;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue