|
|
@ -931,6 +931,12 @@ function Menu:init()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
self.ges_events.Pan = { -- (for mousewheel scrolling support)
|
|
|
|
|
|
|
|
GestureRange:new{
|
|
|
|
|
|
|
|
ges = "pan",
|
|
|
|
|
|
|
|
range = self.dimen,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
self.ges_events.Close = self.on_close_ges
|
|
|
|
self.ges_events.Close = self.on_close_ges
|
|
|
|
|
|
|
|
|
|
|
|
if not Device:hasKeyboard() then
|
|
|
|
if not Device:hasKeyboard() then
|
|
|
@ -1386,6 +1392,17 @@ function Menu:onSwipe(arg, ges_ev)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Menu:onPan(arg, ges_ev)
|
|
|
|
|
|
|
|
if ges_ev.mousewheel_direction then
|
|
|
|
|
|
|
|
if ges_ev.direction == "north" then
|
|
|
|
|
|
|
|
self:onNextPage()
|
|
|
|
|
|
|
|
elseif ges_ev.direction == "south" then
|
|
|
|
|
|
|
|
self:onPrevPage()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function Menu:onMultiSwipe(arg, ges_ev)
|
|
|
|
function Menu:onMultiSwipe(arg, ges_ev)
|
|
|
|
-- For consistency with other fullscreen widgets where swipe south can't be
|
|
|
|
-- For consistency with other fullscreen widgets where swipe south can't be
|
|
|
|
-- used to close and where we then allow any multiswipe to close, allow any
|
|
|
|
-- used to close and where we then allow any multiswipe to close, allow any
|
|
|
|