@@ -102,7 +102,6 @@ function hover(oe, opt) {
102102}
103103
104104function down ( oe , opt ) {
105- const target = oe . target ;
106105 const win = getWindow ( oe ) ;
107106 let { 'x' : ox , 'y' : oy } = getEventPos ( oe ) ;
108107 let isStart = false ;
@@ -163,7 +162,6 @@ function down(oe, opt) {
163162 }
164163 } ;
165164 if ( isPointer ) {
166- target ?. setPointerCapture ?. ( oe . pointerId ) ;
167165 win . addEventListener ( 'pointermove' , move , { 'passive' : false } ) ;
168166 win . addEventListener ( 'pointerup' , end ) ;
169167 win . addEventListener ( 'pointercancel' , end ) ;
@@ -690,15 +688,13 @@ function scale(oe, handler) {
690688 }
691689 } ;
692690 down = ( e ) => {
693- target . setPointerCapture ?. ( e . pointerId ) ;
694691 state . pointers . set ( e . pointerId , { 'x' : e . clientX , 'y' : e . clientY } ) ;
695692 if ( state . pointers . size === 2 ) {
696693 const pts = Array . from ( state . pointers . values ( ) ) ;
697694 state . lastDis = Math . hypot ( pts [ 0 ] . x - pts [ 1 ] . x , pts [ 0 ] . y - pts [ 1 ] . y ) ;
698695 state . lastPos = { 'x' : ( pts [ 0 ] . x + pts [ 1 ] . x ) / 2 , 'y' : ( pts [ 0 ] . y + pts [ 1 ] . y ) / 2 } ;
699696 }
700697 } ;
701- target . setPointerCapture ?. ( oe . pointerId ) ;
702698 win . addEventListener ( 'pointermove' , move , { 'passive' : false } ) ;
703699 win . addEventListener ( 'pointerup' , up ) ;
704700 win . addEventListener ( 'pointercancel' , up ) ;
0 commit comments