diff --git a/src/pyj/read_book/iframe.pyj b/src/pyj/read_book/iframe.pyj index 5b933a152c..cc8472166d 100644 --- a/src/pyj/read_book/iframe.pyj +++ b/src/pyj/read_book/iframe.pyj @@ -186,6 +186,7 @@ class IframeBoss: def modify_selection(self, data): sel = window.getSelection() sel.modify('extend', data.direction, data.granularity) + self.ensure_selection_visible() def initialize(self, data): scroll_viewport.update_window_size(data.width, data.height)