From 68c565242b70a45cf703738cb4f51a82074d15b8 Mon Sep 17 00:00:00 2001 From: Mike Allen Date: Thu, 15 Feb 2024 14:41:36 -0800 Subject: [PATCH] Fix bug with scribble when the editor is scrollable - the scribble area was also being scrolled, now it is fixed --- .../widgets/raw_editor/raw_editor_state.dart | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index aad36b61..0612e19b 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -540,15 +540,15 @@ class QuillRawEditorState extends EditorState child = BaselineProxy( textStyle: _styles!.paragraph!.style, padding: baselinePadding, - child: QuillSingleChildScrollView( - controller: _scrollController, - physics: widget.configurations.scrollPhysics, - viewportBuilder: (_, offset) => CompositedTransformTarget( - link: _toolbarLayerLink, - child: MouseRegion( - cursor: SystemMouseCursors.text, - child: _scribbleFocusable( - QuilRawEditorMultiChildRenderObject( + child: _scribbleFocusable( + QuillSingleChildScrollView( + controller: _scrollController, + physics: widget.configurations.scrollPhysics, + viewportBuilder: (_, offset) => CompositedTransformTarget( + link: _toolbarLayerLink, + child: MouseRegion( + cursor: SystemMouseCursors.text, + child: QuilRawEditorMultiChildRenderObject( key: _editorKey, offset: offset, document: doc,