Skip to content

QuickMenu: anchor to gesture position 3#10646

Merged
hius07 merged 11 commits into
koreader:masterfrom
hius07:anchor-quick-menu
Jul 8, 2023
Merged

QuickMenu: anchor to gesture position 3#10646
hius07 merged 11 commits into
koreader:masterfrom
hius07:anchor-quick-menu

Conversation

@hius07

@hius07 hius07 commented Jul 5, 2023

Copy link
Copy Markdown
Member

A child of #10641.


This change is Reviewable

@hius07

hius07 commented Jul 5, 2023

Copy link
Copy Markdown
Member Author

Updates:
"Anchor QuickMenu to gesture position" is available in the Gestures manager menu only.

@Frenzie Frenzie added this to the 2023.07 milestone Jul 5, 2023
Comment thread frontend/ui/widget/buttondialog.lua Outdated
@poire-z

poire-z commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

Assuming buttontable:setupGridScrollBehaviour() does not change the width, and that the one you fetch early doesn't change (please look too to be sure my feeling is right), you could use your buttontable_width on line 184 too.

@yparitcher

Copy link
Copy Markdown
Member

Thank you for fixing this

I think i can simplify this by adding the qm setting to the gesture table in gestures.lua, so we dont need to pass extra arguments.

I am not at my computer, so i will hopefully send a patch tomorrow.

@yparitcher

Copy link
Copy Markdown
Member

please see e25e0a2 for a simpler way, (i think) and also i moved the gesture specific menus (anchor & always active) to the gesture plugin.

If you are ok with it i will push it to this PR branch, and you can take it from there

@hius07

hius07 commented Jul 6, 2023

Copy link
Copy Markdown
Member Author

Thank you, I like the changes, more logical.

@yparitcher

yparitcher commented Jul 6, 2023

Copy link
Copy Markdown
Member

Sorry, github is being obtuse,
I pushed to you branch but for some reason it is not showing up on the PR

Comment thread frontend/dispatcher.lua Outdated
local Notification = require("ui/widget/notification")
local ReaderHighlight = require("apps/reader/modules/readerhighlight")
local ReaderZooming = require("apps/reader/modules/readerzooming")
local Screen = require("device").screen

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device.screen
We already require device earlier

@yparitcher yparitcher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, (the dispatcher stuff, i did not look at the ButtonDialog stuff)

@poire-z poire-z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taking my part of responsabilities :) : ButtonDialog stuff looks good to me !

@hius07 hius07 merged commit 86f4b3c into koreader:master Jul 8, 2023
@hius07 hius07 deleted the anchor-quick-menu branch July 8, 2023 05:17
@Frenzie Frenzie modified the milestones: 2023.07, 2023.06.1 Jul 8, 2023
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 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.

4 participants