Well, I'm not sure I want to do this. All the height are calculated so
the page fits exactly the screen. The middle part should be scrollable
with iScroll.
I will work on a system of callbacks for my custom events. Right now,
if I replace the triggerEvent('custom') by the call of the custom
function, it works well, except it's not really clean.Thanks for your anwser, that'll do. On 11 sep, 22:46, Christoph Pojer <[email protected]> wrote: > In order to stop scrolling the whole page on mobile safari, you need > to preventDefault on touchmove on the document. Please just refrain > from using delegation for my custom click event for now, I don't use > it either in my mobile web apps. > > I will work on delegation for More and improve it until we will have > full delegation support in core 2.0. I am not sure whether I will make > custom events work, let's see about that, also depends on my mood :) > > On Sep 11, 10:21 pm, Savageman <[email protected]> wrote: > > > > > Tadaa, I have been working on an example. I can show it to you > > now. :-) > > >http://julian.esperat.fr/mini-moo/ > > .zip containing all the files:http://julian.esperat.fr/mini-moo/source.zip > > > If the delegation was working, we could expect hiding the URL bar and > > adding scrolling to the middle area when necessary. > > > I could manage a function stack to trigger the events manually on each > > insert/show but it's kinda clumsy. Custom event delegation would be > > much more easier. I'll probably do that as a temporary solution > > anyway. > > > Is it planned on the MooTools roadmap? Thanks in advance for your > > answer. > > > Sincerely, > > Savageman. > > > On 11 sep, 18:12, Fábio M. Costa <[email protected]> wrote: > > > > Oh, i was thinking about a custom event with no base dom event, like when > > > you trigger from a class. > > > Yeah makes sense, cool. > > > > -- > > > Fábio Miranda Costa > > > front...@globocore > > > *github:* fabiomcosta > > > *twitter:* @fabiomiranda > > > *ramal:* 6410 > > > > On Sat, Sep 11, 2010 at 12:25 PM, Oskar Krawczyk > > > <[email protected]>wrote: > > > > > Why not? Consider a clickWithSomething event requested in and appended > > > > to > > > > the document. Makes perfect sense to me. > > > > > O. > > > > > On 2010-09-11, at 16:45, Fábio M. Costa wrote: > > > > > why would you use delegate for a custom event? makes no sense to me. > > > > > -- > > > > Fábio Miranda Costa > > > > front...@globocore > > > > *github:* fabiomcosta > > > > *twitter:* @fabiomiranda > > > > *ramal:* 6410 > > > > > On Fri, Sep 10, 2010 at 2:41 PM, Savageman <[email protected]> > > > > wrote: > > > > >> Thanks for your help. I added the script after MooTools load and > > > >> before my domcontentloaded. It didn't do the job. :/ I surely missed > > > >> something. > > > > >> On 10 sep, 17:14, Slik Jay <[email protected]> wrote: > > > >> > I wrote small plugin for mootools more's delegation > > > > >> >http://jsfiddle.net/slik/vMeNG/ > > > > >> > On Fri, Sep 10, 2010 at 6:09 PM, Savageman <[email protected]> > > > >> wrote: > > > >> > > Hello, > > > > >> > > I would like to delegate some custom events. Is that possible? > > > > >> > > I have something like that: > > > > >> > > var $main = document.id('main'); > > > >> > > $main.addEvent('custom:relay(.class)', myFunction); > > > >> > > $main.getElements('.class').fireEvent('cutom'); > > > > >> > > The array $main.getElements is not empty, but my function doesn't > > > >> > > trigger. Any help appreciated. :-)
