Wrong touch event coordinates in some situations on Linux machines
See original GitHub issueVersions
- Python: 3.7.3
- OS: Raspbian (RPI 4)
- Kivy: 1.11.1
Description
Sometimes when I try to move one slider another simultaneously moves as the original. I’ve tried to reproduce this bug on OS X, Windows 10, Raspbian and Arch Linux. On OS X and Windows 10, I haven’t succeeded to reproduce it. I have also tried to use the joystick component url and I’ve got the same behavior. I’ve tried to print coordinates in on_touch_down method and there are really two pairs of coordinates.
Code and Logs
Part of the code, all sliders are built the same way
GridLayout:
cols:3
rows:6
id: parent_joint
padding: dp(10)
BoxLayout:
size_hint_x: None
width: parent_joint.width * 0.77
Slider:
orientation: 'horizontal'
value: 0
min: -185
max: 185
step: 1
value_track:True
sensitivity: 'handle'
Label:
size_hint_x: None
width: parent_joint.width * 0.12
id: baseValue
markup: True
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Touchscreen coordinates problem - Manjaro Linux Forum
The problem is that the touchscreen coordinates are not calculated correctly; the touchscreen in itself is functioning and the panel responds to ...
Read more >Touch screen on Debian Stretch (KDE) responds on wrong ...
I found that touch-screen is not properly mapped to the display coordinates: open Displays and make sure your touchscreen is mapped at 0x0 ......
Read more >CTP coordinates do not match screen size - NXP Community
Solved: Hello, I've added a custom LCD with touch panel to an imx8m processor. The LCD is 720x1280. The CTP has the same...
Read more >Qt 5.3.2 + TSlib: wrong touch coordinates - linux - Stack Overflow
Ok, found a solution on my own: it was due to EVDEV working concurrently with TSLIB . My application works fine if I...
Read more >Touch.clientX - Web APIs | MDN
The Touch.clientX read-only property returns the X coordinate of the touch point relative to the viewport, not including any scroll offset.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just so you know, this other line was used to auto detect multitouch devices, if you only care about single touch, you can keep using the mouse, if you want multi, you’ll want to disable the mouse and instead make sure the probesysfs is properly configured and calibrated.
can you try to comment out the last line?