-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix touchscreen bug #3206
fix touchscreen bug #3206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference I don't have a touchscreen to test the fix.
@@ -3,7 +3,8 @@ import Vue from 'vue'; | |||
export const deviceSupportHelpers = Vue.extend({ | |||
data() { | |||
return { | |||
isTouchDevice: 'ontouchstart' in window || navigator.maxTouchPoints, | |||
// @ts-ignore msMaxTouchPoints is deprecated but must fix tablet bugs before fixing this.. otherwise breaks touchscreen computers | |||
isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly, msMaxTouchPoints
and platform
are both deprecated but msMaxTouchPoints
returns undefined
and platform
still returns a string. Wondering if we might have an issue once platform
starts returning undefined
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes would have to handle platform separately as tech debt
Thanks a lot. Got merged. |
Got released with |
reverting ts related changes 027dfb2#diff-3d3c041f8ea21c808cb848b1e406293cfb11c9b09c68b67b81389ea0469db1a9R6
fixes #3167
Community Issue:
https://community.n8n.io/t/172-0-nodes-position-not-saved/13082/6