Commit 0f09a7e 1 parent 96f74a1 commit 0f09a7e Copy full SHA for 0f09a7e
File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,29 @@ pub fn Scrollbar(
277
277
thumb_status. set_value ( Some ( ThumbStatus :: Enter ) ) ;
278
278
} ;
279
279
280
+ on_cleanup ( move || {
281
+ x_trumb_mousemove_handle. update_value ( |handle| {
282
+ if let Some ( handle) = handle. take ( ) {
283
+ handle. remove ( ) ;
284
+ }
285
+ } ) ;
286
+ x_trumb_mouseup_handle. update_value ( |handle| {
287
+ if let Some ( handle) = handle. take ( ) {
288
+ handle. remove ( ) ;
289
+ }
290
+ } ) ;
291
+ y_trumb_mousemove_handle. update_value ( |handle| {
292
+ if let Some ( handle) = handle. take ( ) {
293
+ handle. remove ( ) ;
294
+ }
295
+ } ) ;
296
+ y_trumb_mouseup_handle. update_value ( |handle| {
297
+ if let Some ( handle) = handle. take ( ) {
298
+ handle. remove ( ) ;
299
+ }
300
+ } ) ;
301
+ } ) ;
302
+
280
303
view ! {
281
304
<div
282
305
class=class_list![ "thaw-scrollbar" , class. map( | c | move || c. get( ) ) ]
You can’t perform that action at this time.
0 commit comments