mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-01 10:18:35 +08:00
chore: small changes
This commit is contained in:
@@ -101,10 +101,12 @@ export default class EntryBtn extends Emitter {
|
||||
const maxWidth = this._$container.get(0).offsetWidth
|
||||
const maxHeight = this._$container.get(0).offsetHeight
|
||||
|
||||
this._isClick = false
|
||||
e = e.origEvent
|
||||
const deltaX = eventClient('x', e) - this._startX
|
||||
const deltaY = eventClient('y', e) - this._startY
|
||||
if (Math.abs(deltaX) > 3 || Math.abs(deltaY) > 3) {
|
||||
this._isClick = false
|
||||
}
|
||||
let newX = this._oldX + deltaX
|
||||
let newY = this._oldY + deltaY
|
||||
if (newX < 0) {
|
||||
|
||||
Reference in New Issue
Block a user