cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Horizontal ScrollView does not respond to horizontal scrolling on laptop trackpads (v3.4.x)

Open ryanscottmurphy opened this issue 2 years ago • 2 comments

Cocos Creator version

3.4.0, 3.4.2

System information

macOS Monterey v12.2.1, Macbook Pro 2.6 GHz, 16GB DDR4

Issue description

After setting up a horizontal scroll view in an empty scene, the scroll view does not respond to horizontal scrolls (it only responds to the vertical axis of the scroll.

Relevant error log output

No response

Steps to reproduce

  • Create a new scene.
  • Add a ScrollView and configure it to scroll horizontally with long content.
  • Play the scene and attempt to scroll left/right a trackpad that supports horizontal scrolling.

Minimal reproduction project

Creator 3.4.2 Scroll View.zip

ryanscottmurphy avatar Apr 07 '22 01:04 ryanscottmurphy

It seems like the scroll view UI component doesn't handle the scrollX data from EventMouseWheel

PPpro avatar Apr 11 '22 05:04 PPpro

not urgent, put it into v3.6.1

Zhmz avatar Aug 03 '22 09:08 Zhmz