1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Viewport: enable “scroll on drag” mode by default on Android and iOS.

This commit is contained in:
Lukasz Kozakiewicz 2017-10-19 15:13:06 +02:00
parent 37d151cdce
commit bbf6053544
2 changed files with 27 additions and 0 deletions

View file

@ -38,6 +38,10 @@ Viewport::Viewport (const String& name) : Component (name)
setInterceptsMouseClicks (false, true);
setWantsKeyboardFocus (true);
#if JUCE_ANDROID || JUCE_IOS
setScrollOnDragEnabled (true);
#endif
recreateScrollbars();
}