1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Viewport: Improve drag-to-scroll on devices that can accept simultaneous mouse and touch input

Some Windows 11 devices have both touch screens and mouse inputs, and
these can be used simultaneously.

The Viewport (and ListBox) now check the input source of each mouse
down. If the source is not a mouse, the viewport will always enter
drag-to-scroll mode, regardless of the result of isScrollOnDragEnabled.
This commit is contained in:
reuk 2022-01-27 17:52:46 +00:00
parent 768cf7a54c
commit 4cf74dfff6
4 changed files with 158 additions and 138 deletions

View file

@ -499,7 +499,6 @@ public:
voiceListBox.setRowHeight (66);
voiceListBox.selectRow (0);
voiceListBox.updateContent();
voiceListBox.getViewport()->setScrollOnDragEnabled (true);
addAndMakeVisible (phraseLabel);
addAndMakeVisible (phraseListBox);