Skip to content

Fix the scrolling issue when the image is clicked in navigation#15376

Open
GulsahKose wants to merge 1 commit intoCollaboraOnline:distro/collabora/co-25.04from
GulsahKose:image-navigation
Open

Fix the scrolling issue when the image is clicked in navigation#15376
GulsahKose wants to merge 1 commit intoCollaboraOnline:distro/collabora/co-25.04from
GulsahKose:image-navigation

Conversation

@GulsahKose
Copy link
Copy Markdown
Contributor

isWriter() introduced in 9951a62:
Added scroll for Calc/Impress only, assuming Writer handles it via cursor events. That is wrong Writer's GotoFly uses SelectObj, not calc/impress UpdateCursor.

!(isFollowingEditor() ||isFollowingUser()) introduced in 9951a62: Prevents scrolling when following any editor. In single-user mode you always follow yourself, so this blocks all Navigator scrolling.

!TextSelections.getEndRectangle() introduced in 9ea89d7: Replaced !(_selectionHandles.end && _selectionHandles.end.isDragged) (check if handle is being dragged) with !TextSelections.getEndRectangle() (check if text selection exists). Not equivalent - Writer always has a text cursor.

Change-Id: I077f7204fe3fa2bc5e213979ea36aea1d36228b9

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

isWriter() introduced in 9951a62:
Added scroll for Calc/Impress only, assuming Writer handles it via cursor
events. That is wrong  Writer's GotoFly uses SelectObj, not calc/impress
UpdateCursor.

!(isFollowingEditor() ||isFollowingUser()) introduced in 9951a62:
Prevents scrolling when following any editor. In single-user mode you
always follow yourself, so this blocks all Navigator scrolling.

!TextSelections.getEndRectangle() introduced in 9ea89d7:
Replaced !(_selectionHandles.end && _selectionHandles.end.isDragged)
(check if handle is being dragged) with !TextSelections.getEndRectangle()
(check if text selection exists). Not equivalent - Writer always has a
text cursor.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I077f7204fe3fa2bc5e213979ea36aea1d36228b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

1 participant