Created
May 3, 2024 07:57
-
-
Save equwal/6f39b71af18663dbbe6a7d63f61bae6f to your computer and use it in GitHub Desktop.
Disable floating window movement? #9646
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local MovableContainer = require("ui/widget/container/movablecontainer") | |
| MovableContainer.init = function(self) | |
| self.ignore_events = {"touch", "swipe", "hold", "hold_pan", "hold_release", "pan", "pan_release"} | |
| end | |
| local nope = function() return false end | |
| MovableContainer.onMovableSwipe = nope | |
| MovableContainer.onMovableHold = nope | |
| MovableContainer.onMovableHoldPan = nope | |
| MovableContainer.onMovableHoldRelease = nope | |
| MovableContainer.onMovableTouch = nope | |
| MovableContainer.onMovablePan = nope | |
| MovableContainer.onMovablePanRelease = nope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment