File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ export default function Silly() {
88
88
let isDragging = false ;
89
89
let previousX = 0 ;
90
90
let previousY = 0 ;
91
- let rotateTimeout : NodeJS . Timeout | null = null ;
92
91
93
92
const handleMouseDown = ( e : MouseEvent ) => {
94
93
startDragging ( )
@@ -105,10 +104,6 @@ export default function Silly() {
105
104
const startDragging = ( ) => {
106
105
isDragging = true ;
107
106
sceneManager . manuallyRotated = true ;
108
- if ( rotateTimeout ) {
109
- clearTimeout ( rotateTimeout )
110
- rotateTimeout = null
111
- }
112
107
}
113
108
114
109
const handleMouseMove = ( e : MouseEvent ) => {
@@ -139,10 +134,7 @@ export default function Silly() {
139
134
140
135
const stopDragging = ( ) => {
141
136
isDragging = false ;
142
- rotateTimeout = setTimeout ( ( ) => {
143
- sceneManager . manuallyRotated = false ;
144
- rotateTimeout = null
145
- } , 2000 ) ;
137
+ sceneManager . manuallyRotated = false ;
146
138
} ;
147
139
148
140
canvas . addEventListener ( 'mousedown' , handleMouseDown ) ;
You can’t perform that action at this time.
0 commit comments