Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UMG Scrollbox hijacks touch/click and triggers OnRelease events - any way to avoid this without breaking the scrollbox functionality?

I've tried this on desktop and mobile with both vertical and horizontal scrollboxes.

I have a scroll box that holds a list of buttons which are added during runtime, and each button is set up to trigger when the OnRelease event is detected. Additionally, I have their interaction mode is set to Precise Click/Touch.

Here is my problem: When I click or touch a button and try to scroll through the list, the OnRelease event of the button immediately fires because the scrollbox is hijacking the input and causing the button to think I've ended the click, or lifted my finger. First I tried overriding this in the Player Controller with a Touch Input that would set a bool to true and block the Release event from firing while true, but that didn't work because the scroll box is also causing the Player Controller to think I've ended the click or lifted my finger and thus setting the bool back to false. Next I tried adding an override directly into the widget for Touch Start, but that had the same issue as the Player Controller.

I had the idea to get the click/touch position OnPress and a second time OnRelease and compare the two locations and run the results through a branch - I'm not sure if that will work yet, and I'm wondering if there is a better way or if the scrollbox is even functioning properly.

Product Version: UE 4.15
more ▼

asked Apr 14 '17 at 12:08 AM in Blueprint Scripting

avatar image

13 5 6 10

avatar image dishsyntax Apr 14 '17 at 02:46 AM

I see what you mean. Even just left-click and drag ontop of a button inside a scrollbox will fire the buttons on released event as you said. I don't think your idea would work, because you would be trying to get the click or touch position after release, meaning there is no click or touch to get.

avatar image Naitguolf Aug 15 '18 at 04:24 PM

Hi! I have same problem with 4.19 in android. Only way to work seems to use OnClicked... but is not very reliable as usually miss a lot of taps!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question