@@ -163,7 +163,7 @@ function matchingLabels(el) {
163163// but this breaks `<input>` focus and link clicks
164164// disable mouse handlers for MOUSE_TIMEOUT ms after
165165// a touchend to ignore synthetic mouse events
166- let mouseCanceller = function ( mouseEvent ) {
166+ function mouseCanceller ( mouseEvent ) {
167167 // Check for sourceCapabilities, used to distinguish synthetic events
168168 // if mouseEvent did not come from a device that fires touch events,
169169 // it was made by a real mouse and should be counted
@@ -202,7 +202,7 @@ let mouseCanceller = function (mouseEvent) {
202202 mouseEvent . preventDefault ( ) ;
203203 mouseEvent . stopPropagation ( ) ;
204204 }
205- } ;
205+ }
206206
207207/**
208208 * @param {boolean= } setup True to add, false to remove.
@@ -229,7 +229,7 @@ function ignoreMouse(e) {
229229 if ( ! POINTERSTATE . mouse . mouseIgnoreJob ) {
230230 setupTeardownMouseCanceller ( true ) ;
231231 }
232- let unset = function ( ) {
232+ let unset = ( ) => {
233233 setupTeardownMouseCanceller ( ) ;
234234 POINTERSTATE . mouse . target = null ;
235235 POINTERSTATE . mouse . mouseIgnoreJob = null ;
@@ -743,13 +743,13 @@ register({
743743 let t = _findOriginalTarget ( e ) ;
744744 // eslint-disable-next-line @typescript-eslint/no-this-alias
745745 let self = this ;
746- let movefn = function movefn ( e ) {
746+ let movefn = ( e ) => {
747747 if ( ! hasLeftMouseButton ( e ) ) {
748748 downupFire ( 'up' , t , e ) ;
749749 untrackDocument ( self . info ) ;
750750 }
751751 } ;
752- let upfn = function upfn ( e ) {
752+ let upfn = ( e ) => {
753753 if ( hasLeftMouseButton ( e ) ) {
754754 downupFire ( 'up' , t , e ) ;
755755 }
@@ -854,7 +854,7 @@ register({
854854 let t = _findOriginalTarget ( e ) ;
855855 // eslint-disable-next-line @typescript-eslint/no-this-alias
856856 let self = this ;
857- let movefn = function movefn ( e ) {
857+ let movefn = ( e ) => {
858858 let x = e . clientX ,
859859 y = e . clientY ;
860860 if ( trackHasMovedEnough ( self . info , x , y ) ) {
@@ -876,7 +876,7 @@ register({
876876 self . info . started = true ;
877877 }
878878 } ;
879- let upfn = function upfn ( e ) {
879+ let upfn = ( e ) => {
880880 if ( self . info . started ) {
881881 movefn ( e ) ;
882882 }
0 commit comments