Hi all, I have a screen with a viewport, inside it, I have a Slider, when a page is too long, I need to scroll the vertical scrollbar, but when the mouse meets the slider, it just moves the slider’s value and doesn’t move the page. So, how can I solve this problem?
Hope this helps…
void Component::setViewportIgnoreDragFlag ( bool ignoreDrag ) noexcept
This is useful for Components such as sliders that should not move their parent Viewport when dragged.
You can actually call this on any component, not only sliders.
You have to set the flag to true, not to false.