question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong touch event coordinates in some situations on Linux machines

See original GitHub issue

Versions

  • 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tshirtmancommented, Sep 14, 2019

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.

1reaction
tshirtmancommented, Sep 14, 2019

can you try to comment out the last line?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found