Skip to content

Commit 382b8ac

Browse files
MachinisteWebchrisvfritz
authored andcommitted
Open mobile memu only if slide come from left-border side of screen (vuejs#913)
Signed-off-by: Bruno Lesieur <[email protected]>
1 parent 75b7dea commit 382b8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/vue/source/js/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
var yDiff = end.y - start.y
127127

128128
if (Math.abs(xDiff) > Math.abs(yDiff)) {
129-
if (xDiff > 0) sidebar.classList.add('open')
129+
if (xDiff > 0 && start.x <= 80) sidebar.classList.add('open')
130130
else sidebar.classList.remove('open')
131131
}
132132
})

0 commit comments

Comments
 (0)