mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 08:34:15 -05:00
fix scrollbar panic (#193)
This commit is contained in:
parent
30fe3f72bf
commit
3edb401f0a
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ pub fn Scrollbar(
|
||||||
sync_scroll_state();
|
sync_scroll_state();
|
||||||
};
|
};
|
||||||
let on_mouseleave = move |_| {
|
let on_mouseleave = move |_| {
|
||||||
thumb_status.update_value(|thumb_status| {
|
thumb_status.try_update_value(|thumb_status| {
|
||||||
if thumb_status.is_some() {
|
if thumb_status.is_some() {
|
||||||
*thumb_status = Some(ThumbStatus::DelayLeave);
|
*thumb_status = Some(ThumbStatus::DelayLeave);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue