playcanvas / playcanvas/engine
Button within Scroll view element is triggered on touchscreen
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
On touch screen (mobile), when you click a button in the scroll view list, drag it then let go ( finger still on top of button ) it actives the click event.
However with the mouse (desktop), its "aware" that the scroll has moved and does not activate the click event.
Can be seen in the "Dynamic UI Scroll View" example:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Dynamic UI Scroll View example and reproduce the interaction on a touchscreen, then compare it with the desktop mouse behavior. Trace the scroll-view and button touch/click handling used by the example; the fix is complete when dragging a button does not trigger its click after release.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100