anmar7889 / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Touch-screen generated MouseEvent(s) do not have the same XY coords as actual mouse clicks #959

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable the remote debugging port and navigate to the debug console.   
2. Set Event Listener breakpoint on Mouse click events. 
3. Click a button using touchscreen and record the XY coordinates displayed in 
the MouseEvent data.  
4. Repeat steps using actual mouse pointer on the same button.

What is the expected output? What do you see instead?
MouseEvent from a touchscreen 'click' has a position that is much different 
than using a regular mouse when clicking a button at roughly the same position 
on the page.  This causes the page's clicks with touchscreen to appear to not 
register.  See additional information for details

What version of the product are you using? On what operating system?
CEF 3.1364.1094.  Windows 8 (Surface Pro)

Please provide any additional information below.

Here is sample data.  There is a pretty big discrepancy in positional data 
between these events.  The same page works fine in regular Google Chrome 
browser.

Mouse-driven event
client X,Y = 57,201
layer  X,Y = 57,125
offset X,Y = 12,16
page   X,Y = 57,201
screen X,Y = 91,258
x,y    X,Y = 57,201

Touch-driven event
client X,Y = 100,331
layer  X,Y = 100,255
offset X,Y = 100,34
page   X,Y = 100,331
screen X,Y = 134,388
x,y    X,Y = 100,331

Original issue reported on code.google.com by c.joyce...@gmail.com on 24 Apr 2013 at 9:08

GoogleCodeExporter commented 9 years ago
Could be related to issue #1024. Please re-test with the 1750 branch and the 
following:

1. Right click on cefclient.exe, check the "Disable display scaling on high DPI 
settings" option under Properties > Compatibility.
2. Pass the --touch-events=enabled command-line flag to cefclient.

Original comment by magreenb...@gmail.com on 7 Feb 2014 at 6:40

GoogleCodeExporter commented 9 years ago
CEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/cef/issue/959

Original comment by magreenb...@gmail.com on 14 Mar 2015 at 3:25