Skip to content

Commit

Permalink
chore: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Jan 6, 2023
1 parent dff8ad5 commit d16419e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/EntryBtn/EntryBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d16419e

Please sign in to comment.