console.js
/**
     * Handle touchmove and mousemove events.
     * @param  {object} eventTouchMove               Event properties
     */
Handle touchmove and mousemove events.
@param  {object} eventTouchMove               Event properties
Handle touchmove and mousemove events . @param { object } eventTouchMove Event properties
function handleTouchMove(eventTouchMove) {
        if (eventTouchMove.changedTouches) {
            const currentTouchIndex = ongoingTouchIndexById(touchId, eventTouchMove.changedTouches);
            btnOpenConsole.style.top = eventTouchMove.changedTouches[currentTouchIndex].pageY;
            btnOpenConsole.style.left = eventTouchMove.changedTouches[currentTouchIndex].pageX
        } else {
            btnOpenConsole.style.top = eventTouchMove.pageY - btnOpenConsole.getBoundingClientRect().height / 2;
            btnOpenConsole.style.left = eventTouchMove.pageX - btnOpenConsole.getBoundingClientRect().width / 2;
        }
    }
function handleTouchMove ( eventTouchMove ) { if ( eventTouchMove . changedTouches ) { const currentTouchIndex = ongoingTouchIndexById ( touchId , eventTouchMove . changedTouches ) ; btnOpenConsole . style . top = eventTouchMove . changedTouches [ currentTouchIndex ] . pageY ; btnOpenConsole . style . left = eventTouchMove . changedTouches [ currentTouchIndex ] . pageX } else { btnOpenConsole . style . top = eventTouchMove . pageY - btnOpenConsole . getBoundingClientRect ( ) . height / 2 ; btnOpenConsole . style . left = eventTouchMove . pageX - btnOpenConsole . getBoundingClientRect ( ) . width / 2 ; } }
Handle touchmove and mousemove events.
Handle touchmove and mousemove events .