Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.

bugfix: only check for settings menu when open

Scenario I was seeing:

  • on an Android phone
  • when font size is small
  • if I scrolled down a bit
  • and then tapped on the editor

Then before this commit, the scrollbar would move. Even though I was tapping nowhere near the scrollbar. Or even the settings area!

I carefully bisected this down to change NVZTMKERX3N and this code in on.mouse_release:

if on_area(Settings_menu_area, x,y) then return end

What was actually going on in the above scenario:

  • on a device with a small screen
  • after I open the settings menu once
  • the scrollbar overlaps the erstwhile setting menu, so that dragging the scrollbar doesn't trigger on.mouse_receive
  • as a result the scrollbar is still active when I tap the editor.

Holy smokes!

Created by  akkartik  on December 3, 2023
OJGIQLZWADBO2UN2BLF5RCNQHQW3TQYP6EEA6QCK2PLV4TJGCWAQC
Change contents