New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 701970 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Pointer Lock movementX/Y values jump when scroll wheel used.

Reported by r2r...@hotmail.com, Mar 15 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1 : go on the WebGL test link : http://www.asr-games.net/WebGLProblem/
2 : See the instructions for the bug 1
3 : Lock the cursor by pressing tab, play with your mouse scroll,mouve your mouse a bit.
Video : https://www.youtube.com/watch?v=2dZANg5-Czo

What is the expected behavior?
The camera should not rotate after the use of the mouse scroll.

What went wrong?
The camera rotate after the use of the mouse scroll. Do not happen in firefox.

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 56.0.2924.87  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 25.0 r0

Google chrome and Canary are affected, everything is fine in firefox. Not good for an FPS game
 
Components: IO>PointerLock
Labels: -OS-Windows OS-All
Same as  issue 701965 , I don't think this is related to WebGL. Adding IO>PointerLock.

Reproduced on Linux.
Status: Untriaged (was: Unconfirmed)

Comment 3 by kbr@chromium.org, Mar 15 2017

I don't understand the reproduction steps. It doesn't seem reproducible on a MacBook Pro Retina with a trackpad, as opposed to a mouse.

The camera angle jumps when the mouse is moved after some scrolling.

I can't repro on a MacBook Air either, perhaps the system is only sending pixel scrolling events (and not discrete scroll events), which might bypass the issue.

Comment 5 by scheib@chromium.org, Mar 16 2017

Components: -Blink>WebGL
Status: Available (was: Untriaged)
Reproduced on Windows & Linux. Google Chrome	57.0.2987.98

Pointer lock impl on Mac is different, doesn't use 'warping', so that may explain the difference. 


Comment 6 by scheib@chromium.org, Mar 22 2017

Labels: -OS-All OS-Chrome OS-Linux OS-Windows
Summary: Pointer Lock movementX/Y values jump when scroll wheel used. (was: Camera rotation when the mouse scroll is used.)
Labels: Hotlist-Input-Dev
Owner: chongz@chromium.org
Status: Assigned (was: Available)

Comment 8 by r2r...@hotmail.com, Apr 22 2017

Still not fixed on chrome 58.0.3029.81? are you serious?
Chrome was the first to remove the unity web player plugin and now, 2 year after that, we still can't have something "stable" for our webgl game....
Components: -IO>PointerLock Blink>Input>PointerLock
Deprecate IO>PointerLock

Comment 10 by r2r...@hotmail.com, May 11 2017

Do that mean that this issue will not be solved?
Comment 9 only changed the labeling of how we group issues. This issue remains open. 
Can we have an update on this issue? i have reported it 4 month ago and it's still not fixed. It's a big problem for an FPS game in WebGL.
Thank you.

Comment 13 by r2r...@hotmail.com, Sep 26 2017

6 months after the report, it's still the same..... Can you take a look please ....
Cc: chongz@chromium.org dtapu...@chromium.org
Owner: ----
Status: Untriaged (was: Assigned)
Un-assigning myself as I no longer work on PointerLock.

Comment 15 Deleted

Thank you for your answer, i hope that you can assign someone else on it.
Cc: -chongz@chromium.org
Owner: eirage@chromium.org
Status: Assigned (was: Untriaged)
Cannot reproduce the issue on Chrome 61.0.3163.100 Linux and Windows. 
Is this issue happen in virtual machine or remote desktop?
Reproduces for me on Linux 61.0.3163.100.

Comment 20 by r2r...@hotmail.com, Oct 13 2017

@eirage , it's important to lock the cursor by pressing tab. Linux and windows version are affected.
Yes, I did lock the cursor. I can repro it now, around once out of 20 times. It doesn't happen as frequent as the video shows.
I added a mousemove event listener in console to log movementX/Y on mousemove event. I didn't see abnormal movementX/Y data while the camera jump. (with such a jump, I assume it must be a 200+ movement)
Also test with this: http://output.jsbin.com/raheyun, I didn't see any jump or abnormal movement either.

Is it possible that not movementX/Y but something else cause the camera rotation? 


Cc: nr...@unity3d.com mar...@unity3d.com
While I reproduce regularly with the Unity build at http://www.asr-games.net/WebGLProblem/ I also do not easily reproduce on a simple javascript test page.

I've updated this one to allow preventing scrolling:
https://scheib.github.io/HTMLMisc/PointerLockLog.html

I'm unsure how the Unity export is preventing scrolling.  It may be related to why this is happening.

Comment 23 by r2r...@hotmail.com, Oct 20 2017

Thank you for your answer, Marco-Trivellato from unity will take a look, also, it's strange because it do not happen in firefox.
looks like a duplicate of 699956
I met this issue at both my project and three.js example page: https://threejs.org/examples/?q=pointer#misc_controls_pointerlock 

this happen on my laptop with win10, but work fine on another win7 pc, both with a low-end AMD graphic card. 
don't no if it's related.

Sign in to add a comment