fix
parent
6a1a12be66
commit
d9f31c1722
|
@ -18,7 +18,7 @@ function returnEmptyString () {
|
||||||
function returnDocument () {
|
function returnDocument () {
|
||||||
return window.document
|
return window.document
|
||||||
}
|
}
|
||||||
const ALL_HANDLERS = ['click', 'mousedown', 'touchStart', 'mouseenter',
|
const ALL_HANDLERS = ['click', 'mousedown', 'touchstart', 'mouseenter',
|
||||||
'mouseleave', 'focus', 'blur', 'contextmenu']
|
'mouseleave', 'focus', 'blur', 'contextmenu']
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -195,8 +195,8 @@ export default {
|
||||||
this.preClickTime = Date.now()
|
this.preClickTime = Date.now()
|
||||||
},
|
},
|
||||||
|
|
||||||
onTouchStart (e) {
|
onTouchstart (e) {
|
||||||
this.fireEvents('touchStart', e)
|
this.fireEvents('touchstart', e)
|
||||||
this.preTouchTime = Date.now()
|
this.preTouchTime = Date.now()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -518,11 +518,11 @@ export default {
|
||||||
if (this.isClickToHide() || this.isClickToShow()) {
|
if (this.isClickToHide() || this.isClickToShow()) {
|
||||||
newChildProps.on.click = this.onClick
|
newChildProps.on.click = this.onClick
|
||||||
newChildProps.on.mousedown = this.onMousedown
|
newChildProps.on.mousedown = this.onMousedown
|
||||||
// newChildProps.on.touchStart = this.onTouchStart
|
// newChildProps.on.touchstart = this.onTouchstart
|
||||||
} else {
|
} else {
|
||||||
newChildProps.on.click = this.createTwoChains('click')
|
newChildProps.on.click = this.createTwoChains('click')
|
||||||
newChildProps.on.mousedown = this.createTwoChains('mousedown')
|
newChildProps.on.mousedown = this.createTwoChains('mousedown')
|
||||||
// newChildProps.on.TouchStart = this.createTwoChains('onTouchStart')
|
// newChildProps.on.touchstart = this.createTwoChains('onTouchstart')
|
||||||
}
|
}
|
||||||
if (this.isMouseEnterToShow()) {
|
if (this.isMouseEnterToShow()) {
|
||||||
newChildProps.on.mouseenter = this.onMouseenter
|
newChildProps.on.mouseenter = this.onMouseenter
|
||||||
|
|
Loading…
Reference in New Issue