reuk
c802319241
Viewport: Stop touches on other components from interrupting scrolling
Previously, a touch on a component outside the Viewport would interrupt
and cancel a scroll gesture inside the Viewport.
Now, the Viewport will respond to all drag events from the input source
that started the drag, allowing the Viewport to be scrolled with one
input source while adjusting other controls with another input source.
The FontsDemo is useful for testing this behaviour, as it has two
Viewports on a single screen, along with some other controls.
3 years ago
ed
8d6ba3b54e
Accessibility: Use AccessibilityRole::ignored for UI elements that should not be accessible to screen readers but have accessible children
3 years ago
ed
9147a5e535
Accessibility: Ignore Viewport content holder
4 years ago
reuk
394c4fd475
Clang: Fix warnings when building with clang 10
4 years ago
ed
009d685179
Updated all license headers
4 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
ed
a54da0b832
Fixed some more typos
5 years ago
ed
5b65b33280
Make sure scrollbar listeners are updated in Viewport::updateVisibleArea()
5 years ago
ed
ecb87a14b0
Enable Viewport drag-to-scroll functionality by default on devices where touch is the primary input method
6 years ago
jules
cadac817c6
Enabled some more warning flags in Xcode, and fixed the problems they caused
6 years ago
jules
7ab4d1708b
Some misc cleanups, mainly around WeakReference usage and rectangles
6 years ago
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
7 years ago
ed
45698e40b2
Make Viewport::DragToScrollListener more robust and able to cope with the deletion of the original mouseDown event component
7 years ago
hogliux
3ae28b3d54
Viewport: Added the ability to position the scrollbars at the top/left
7 years ago
jules
1a60fa9765
More ScopedPointer/unique_ptr compatibility work
7 years ago
jules
48a5fbd333
Another batch of ScopedPointer cleanups
7 years ago
ed
6568635216
Fixed an unused variable warning in last commit
7 years ago
ed
eb5d4ea0a7
Moved the check for Component viewportIgnoreDragFlag from Viewport::DragToScrollListener::mouseDown and mouseUp to mouseDrag
7 years ago
jules
2dc9316420
Misc ScopedPointer changes to start using reset() and get() rather than assignments and casts (part of an ongoing drift towards more std::unique_ptr compatibility)
7 years ago
Lukasz Kozakiewicz
bbf6053544
Viewport: enable “scroll on drag” mode by default on Android and iOS.
7 years ago
jules
e8af67182d
Added method Viewport::recreateScrollbars()
7 years ago
jules
a4f5663fce
Added an option for Viewport subclasses to create custom scrollbars. Also modified Viewport::getVerticalScrollBar() and ListBox::getVerticalScrollBar() to return references instead of pointers
7 years ago
jules
eda613c6db
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
7 years ago
hogliux
d105d9418a
Added a minimum velocity property to the ContinuousWithMomentum animated position behaviour and increased the minimum velocity of the viewport to avoid some jitter when the viewport animation is close to stand still
7 years ago
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
8 years ago
jules
bf94ab0e4c
Made a few minor tweaks to reduce the number of pedantic -Wfloat-equals warnings
8 years ago
jules
320c8002da
Added methods Viewport::canScrollVertically() and Viewport::canScrollHorizontally()
8 years ago
ed
0747a7067b
Fixed bug with multi-touch in Viewport when drag is blocked and made some methods const
8 years ago
ed
1e7a933543
Added viewportIgnoreDragFlag to Component to indicate that mouse drag events should not move the Component's parent Viewport with drag-to-scroll functionality enabled.
8 years ago
ed
6f9d07abdb
Fixed a bug where modal components in a Viewport with setScrollOnDrag enabled hit jassert (numTouches >= 0) when dismissed
8 years ago
hogliux
035f865099
Fix steppy scrolling if the content component of a viewport was transformed
8 years ago
jules
2fe8465482
Added a minor assertion in Viewport.
9 years ago
jules
b6c3add330
Added drag-to-scroll functionality to Viewport
9 years ago
jules
5ca221ee11
Made Viewport remove the old viewed component when setViewedComponent is called, even if it doesn't own it
9 years ago
Timur Doumler
f73c8e0c59
Fixed bug where Viewport::lookAndFeelChanged() would not update its visibleArea if the call changed its scrollBarThickness.
9 years ago
hogliux
c7b8e77031
Update copyright notice
9 years ago
jules
9b79610cb0
Added a flag MouseWheelEvent::isInertial (currently only implemented for OSX 10.7 or later), and used this to replace some clunky behaviour in the Viewport class that was there to avoid inertial wheel movements triggering nested scrollable components.
10 years ago
jules
21fa6e850e
Fixed very minor code style imperfection!
10 years ago
jules
a4f5faec2d
Fix for a crash when deleting FileBrowserComponent under certain circumstances.
10 years ago
jules
0b67cb2b93
Workaround to avoid misplaced wheel events when scrolling a viewport than contains wheel-able subcomponents.
10 years ago
jules
abd46569ae
Fix for viewport shift-scrolling
10 years ago
jules
943d20ba7a
Added an option to Viewport to allow mouse-wheel scrolling when scrollbars are disabled.
11 years ago
jules
4d79bed3d1
Added versions of Component::addAndMakeVisible and addChildComponent which take a reference instead of a pointer.
11 years ago
jules
023b9ac6cc
Changed ListBox to pass-on left/right key events.
11 years ago
jules
03c2801f3f
Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3
12 years ago
jules
de67718bdb
Made Viewport filter out mouse-wheel events using cmd mod.
12 years ago
jules
c7506df13f
Changed some pass-by-references to pass-by-value to improve compiler optimisation.
12 years ago
jules
e3537ba57a
Cleaned out some defunct ComponentBuilder code.
12 years ago