Skip to content
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

Merged
merged 1 commit into from
Apr 28, 2022
Merged

fix touchscreen bug #3206

merged 1 commit into from
Apr 28, 2022

Conversation

mutdmour
Copy link
Contributor

@mutdmour mutdmour commented Apr 26, 2022

@mutdmour mutdmour requested a review from ivov April 26, 2022 08:14
Copy link
Contributor

@ivov ivov left a 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,
Copy link
Contributor

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.

Copy link
Contributor Author

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

@janober janober merged commit 8d9e05e into master Apr 28, 2022
@janober janober deleted the n8n-3473-touchscreen-bug branch April 28, 2022 15:36
@janober
Copy link
Member

janober commented Apr 28, 2022

Thanks a lot. Got merged.

@janober janober added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Upcoming Release Will be part of the upcoming release labels Apr 28, 2022
@janober
Copy link
Member

janober commented May 2, 2022

Got released with n8n@0.175.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save button remains disabled after a node position is changed
3 participants