Bug 68620

Summary: [bug] Zoom and touch don't work correctly together
Product: Wayland Reporter: Brian Lovin <brian.j.lovin>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Brian Lovin 2013-08-27 17:45:19 UTC
If you launch simple-touch, zoom in using <meta>+<mouse scroll>, then touch simple-touch you can observe that the coordinates touched in simple touch are off by the amount that one is zoomed in.

Observed on 1.2.1 and on master (c4df4082c24ab430d1f91970302702e6078221f3)
Comment 1 Neil Roberts 2014-05-01 15:17:55 UTC
I've posted a patch for this on the mailing list:

http://lists.freedesktop.org/archives/wayland-devel/2014-May/014554.html
Comment 2 Kristian Høgsberg 2014-05-01 16:13:16 UTC
commit eb5a200807b59cb8613d7c9a3ceed795699801f7
Author: Neil Roberts <neil@linux.intel.com>
Date:   Thu May 1 16:13:55 2014 +0100

    Take into account the zoom when applying the output transform
    
    When converting output-relative coordinates (such as from an input
    event) to global coordinates it now takes into account the zoom
    transform. Previously this would only work for the primary pointer
    because the transform doesn't affect the primary pointer position due
    to that way zoom follows the mouse. Touch events and multiple pointers
    were not working correctly.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=68620

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.