8000 Merge pull request #7 from newcrom/T2396 · plotly/plotly.js@06176bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 06176bb

Browse files
authored
Merge pull request #7 from newcrom/T2396
#2396: Front: Allow zooming if tapping on peak on mobile
2 parents 7309012 + df622a5 commit 06176bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@newcrom/plotly.js",
3-
"version": "0.1.10",
3+
"version": "0.1.11",
44
"description": "Forked version of plotly.js with some hacks for use in Newcrom's products. The version is based on plotly.js@2.27.1",
55
"license": "MIT",
66
"main": "./lib/index-newcrom.js",

src/components/shapes/draw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ function drawOne(gd, index) {
196196

197197
queueMicrotask(() => {
198198
path.node().addEventListener('mousedown', window.plotlyStartZooming)
199+
path.node().addEventListener('touchstart', window.plotlyStartZooming)
199200
})
200201
}
201202
}

0 commit comments

Comments
 (0)
0