Skip to content

Instantly share code, notes, and snippets.

@equwal
Created May 3, 2024 07:57
Show Gist options
  • Select an option

  • Save equwal/6f39b71af18663dbbe6a7d63f61bae6f to your computer and use it in GitHub Desktop.

Select an option

Save equwal/6f39b71af18663dbbe6a7d63f61bae6f to your computer and use it in GitHub Desktop.
Disable floating window movement? #9646
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