mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Enable Viewport drag-to-scroll functionality by default on devices where touch is the primary input method
This commit is contained in:
parent
3c6b4f1e95
commit
ecb87a14b0
1 changed files with 1 additions and 4 deletions
|
|
@ -37,10 +37,7 @@ Viewport::Viewport (const String& name) : Component (name)
|
|||
|
||||
setInterceptsMouseClicks (false, true);
|
||||
setWantsKeyboardFocus (true);
|
||||
|
||||
#if JUCE_ANDROID || JUCE_IOS
|
||||
setScrollOnDragEnabled (true);
|
||||
#endif
|
||||
setScrollOnDragEnabled (Desktop::getInstance().getMainMouseSource().isTouch());
|
||||
|
||||
recreateScrollbars();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue