From a126437a38e535063e0255ac65237d80ce6b7ee0 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Thu, 25 Jun 2020 11:56:17 -0400 Subject: [PATCH] Fix broken text entry in background offset input on touch devices --- css/80_app.css | 2 ++ modules/ui/sections/background_offset.js | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/css/80_app.css b/css/80_app.css index 3295fca27..b1df23f10 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -3614,6 +3614,8 @@ li.issue-fix-item:not(.actionable) .fix-icon { margin: 0 auto; margin-top: 20px; cursor: move; + /* prevent scrolling pane while dragging on touchscreen */ + touch-action: none; } .nudge-container .nudge-inner-rect { diff --git a/modules/ui/sections/background_offset.js b/modules/ui/sections/background_offset.js index f1fb9b8be..e256a1c48 100644 --- a/modules/ui/sections/background_offset.js +++ b/modules/ui/sections/background_offset.js @@ -166,10 +166,6 @@ export function uiSectionBackgroundOffset(context) { var nudgeEnter = containerEnter .append('div') .attr('class', 'nudge-outer-rect') - .on('touchstart touchmove touchend', function() { - // prevent scrolling while dragging - d3_event.preventDefault(); - }) .on(_pointerPrefix + 'down', dragOffset); nudgeEnter