Skip to content

fix: a long press on a picture opens the page menu, not Edit PDF - #78

Open
mindfreq wants to merge 1 commit into
artcraft-android:mainfrom
mindfreq:fix/picture-long-press-page-menu
Open

mindfreq wants to merge 1 commit into
artcraft-android:mainfrom
mindfreq:fix/picture-long-press-page-menu

Conversation

@mindfreq

Copy link
Copy Markdown

What happens

In a PDF with no text layer (for example a slide deck exported to images),
long-pressing a page lands on the page's picture. Since there is no word under
the finger, the long press took the "no text here" path, found the picture and
went straight into Edit PDF with that picture selected. A small drag then moved
the picture, so readers could edit the document by accident.

What changed

A long press on a page now always opens the page menu at that point. The menu
has the Edit PDF entry, so nothing starts editing until the reader chooses
it. Selecting and moving pictures inside Edit PDF is unchanged.

Steps to reproduce

  1. Open a PDF whose pages are images (no text layer).
  2. Long-press anywhere on the page.
  3. Before: Edit PDF opens with the picture selected (and dragging moves it).
    After: the page menu appears; Edit PDF only starts when tapped.
image

@mindfreq mindfreq mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant