1
0
mirror of synced 2025-11-06 04:21:11 +08:00

fix: resize

This commit is contained in:
surunzi
2019-10-10 16:05:49 +08:00
parent 6f840ea834
commit c7bc42dc8a
4 changed files with 23 additions and 21 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
* text=auto eol=lf

View File

@@ -1,5 +1,6 @@
module.exports = {
singleQuote: true,
tabWidth: 2,
semi: false
semi: false,
endOfLine: 'lf'
}

View File

@@ -280,14 +280,14 @@ export default class DevTools extends Emitter {
return 0
}
$navBar.on('contextmenu', e => e.preventDefault())
const $body = $(document.body)
const $root = $(document.documentElement)
if (isMobile()) {
$navBar.on('touchstart', startListener).on('touchmove', moveListener)
$body.on('touchend', endListener)
$root.on('touchend', endListener)
} else {
$navBar.on('mousedown', startListener)
$body.on('mousemove', moveListener)
$body.on('mouseup', endListener)
$root.on('mousemove', moveListener)
$root.on('mouseup', endListener)
}
}
}