imports/vx/client/code/ux.js
/**
     * Determine whether this is a superfluous click event on a touch device.
     *
     * @param {object} Event to test.
     * @return {boolean} true if this is a click event occurring on a touch device.
     */
Determine whether this is a superfluous click event on a touch device.
@param {object} Event to test.
@return {boolean} true if this is a click event occurring on a touch device.
Determine whether this is a superfluous click event on a touch device . @param { object } Event to test . @return { boolean } true if this is a click event occurring on a touch device .
isTouchClick(event) {
        if (UXState.touchStartEvent) {
            let timeStampDifference = event.timeStamp - UXState.touchStartEvent.timeStamp
            if (timeStampDifference < 500) {
                console.log("ux.js isTouchClick recent touchstart detected, ignoring click detected timeStampDifference=" + timeStampDifference)
                return true
            }
        }
        return false
    }
isTouchClick ( event ) { if ( UXState . touchStartEvent ) { let timeStampDifference = event . timeStamp - UXState . touchStartEvent . timeStamp if ( timeStampDifference < 500 ) { console . log ( "ux.js isTouchClick recent touchstart detected, ignoring click detected timeStampDifference=" + timeStampDifference ) return true } } return false }
Determine whether this is a superfluous click event on a touch device.
Determine whether this is a superfluous click event on a touch device .