fix: resize
This commit is contained in:
32
.eustia.js
32
.eustia.js
@@ -1,16 +1,16 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
eruda: {
|
eruda: {
|
||||||
library: 'https://raw.githubusercontent.com/liriliri/fione/master/',
|
library: 'https://raw.githubusercontent.com/liriliri/fione/master/',
|
||||||
files: 'src/**/*.js',
|
files: 'src/**/*.js',
|
||||||
ignore: 'src/**/stringify.js',
|
ignore: 'src/**/stringify.js',
|
||||||
output: 'src/lib/util.js',
|
output: 'src/lib/util.js',
|
||||||
exclude: ['createCfg'],
|
exclude: ['createCfg'],
|
||||||
format: 'es'
|
format: 'es'
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
files: ['test/*.js', 'test/*.html'],
|
files: ['test/*.js', 'test/*.html'],
|
||||||
exclude: ['js'],
|
exclude: ['js'],
|
||||||
namespace: 'util',
|
namespace: 'util',
|
||||||
output: 'test/util.js'
|
output: 'test/util.js'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* text=auto eol=lf
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
tabWidth: 2,
|
tabWidth: 2,
|
||||||
semi: false
|
semi: false,
|
||||||
|
endOfLine: 'lf'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -280,14 +280,14 @@ export default class DevTools extends Emitter {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
$navBar.on('contextmenu', e => e.preventDefault())
|
$navBar.on('contextmenu', e => e.preventDefault())
|
||||||
const $body = $(document.body)
|
const $root = $(document.documentElement)
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
$navBar.on('touchstart', startListener).on('touchmove', moveListener)
|
$navBar.on('touchstart', startListener).on('touchmove', moveListener)
|
||||||
$body.on('touchend', endListener)
|
$root.on('touchend', endListener)
|
||||||
} else {
|
} else {
|
||||||
$navBar.on('mousedown', startListener)
|
$navBar.on('mousedown', startListener)
|
||||||
$body.on('mousemove', moveListener)
|
$root.on('mousemove', moveListener)
|
||||||
$body.on('mouseup', endListener)
|
$root.on('mouseup', endListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user