({deltaX, deltaY, pointerType, shiftKey})
| 96 | state.setDragging(true); |
| 97 | }, |
| 98 | onMove({deltaX, deltaY, pointerType, shiftKey}) { |
| 99 | if (currentPosition.current == null) { |
| 100 | currentPosition.current = state.getThumbPosition(thumbRadius); |
| 101 | } |
| 102 | currentPosition.current.x += deltaX; |
| 103 | currentPosition.current.y += deltaY; |
| 104 | if (pointerType === 'keyboard') { |
| 105 | if (deltaX > 0 || deltaY < 0) { |
| 106 | state.increment(shiftKey ? state.pageStep : state.step); |
| 107 | } else if (deltaX < 0 || deltaY > 0) { |
| 108 | state.decrement(shiftKey ? state.pageStep : state.step); |
| 109 | } |
| 110 | } else { |
| 111 | state.setHueFromPoint(currentPosition.current.x, currentPosition.current.y, thumbRadius); |
| 112 | } |
| 113 | }, |
| 114 | onMoveEnd() { |
| 115 | isOnTrack.current = false; |
| 116 | state.setDragging(false); |
nothing calls this directly
no test coverage detected