summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
Diffstat (limited to 'widget')
-rw-r--r--widget/src/scrollable.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index 0a93584e..053b7df6 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -727,6 +727,8 @@ where
_ => mouse::Cursor::Unavailable,
};
+ let had_input_method = shell.input_method().is_open();
+
let translation =
state.translation(self.direction, bounds, content_bounds);
@@ -745,10 +747,12 @@ where
},
);
- if let InputMethod::Open { position, .. } =
- shell.input_method_mut()
- {
- *position = *position + translation;
+ if !had_input_method {
+ if let InputMethod::Open { position, .. } =
+ shell.input_method_mut()
+ {
+ *position = *position + translation;
+ }
}
};