playcanvas / playcanvas/engine

Button within Scroll view element is triggered on touchscreen

Open
#5,127 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: ui requires: discussion
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:

https://playcanvas.com/editor/scene/1680882

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.