Cuperino / QPrompt-Teleprompter

Teleprompter software for all video creators. Built with ease of use, productivity, control accuracy, and smooth performance in mind.
https://qprompt.app
GNU General Public License v3.0
390 stars 29 forks source link

Loss of scroll control under certian conditions #153

Open videosmith opened 1 year ago

videosmith commented 1 year ago

Bug Description No scroll control entering Full Screen mode.

Steps to Reproduce

  1. While in windowed mode click Start Prompter>then Start Prompting>then select Full Screen mode... text scrolls at default speed, cannot adjust.
  2. Enter Full Screen mode first, then click Start Prompter>click Blue Prompting scroll control is restored.

Expected behavior Should behave the same with both methods.

Screenshots (optional) Raspbian Bullseye QPrompt 1.1.3

20230201_135620

Cuperino commented 1 year ago

Loss of control bugs happen as a result of the cursor's focus on the prompter being lost when one interacts with menus. I've worked around this issue in the past by re-focusing the prompter through code after menu interactions. Another way of triggering this bug is to open and close a menu without interacting with it. The re-focus is hard coded for each interaction where applicable. It's done this way because Kirigami offers no means of tying code to the act of closing menus.

If you can see the Fullscreen button from windowed mode and you click on it, the prompter's focus gets restored as intended. The bug you've just discovered only happens when you have to open the menu to show the Fullscreen button in the first place.

The bad here news is "I didn't forget add the call to re-focus to full screen button", meaning the focus is lost after the button's code finishes executing, and the reason is probably related to the fact that the Fullscreen button is not in a sub-menu, but is a top-level button.

The good news are: