FX.Scroll and IE7/8 (Mootools v1.2.1)

18 views
Skip to first unread message

supert3d

unread,
Dec 6, 2008, 11:35:39 PM12/6/08
to MooTools Users
OK, rather annoying... Internet Explorer ( standards
peeerleeease ! ).

Anyway. Developed a lil' page and decided to utilise
Fx.Scroll.toElement ... works great. Firefox... looks lovely, Chrome,
Safari all functioning very nicely indeed... all EXCEPT bl**dy IE !!!

Anyone else got this problem ? I cranked up Google and started doing
some research, reading somewhere that the coords returned
by .getPosition(); get all screwed up after the initial scroll.

I have managed to cure the problem using a rather nasty looking hack I
wrote, it works, but being obsessed with tidy code, I am not entirely
happy with it.

Has anyone else come across this ? I noted in my Googlin' possible bug
fixes in future versions of MooTools? Is this an IE issue?

I've cured my particular problem, but I'm curious if anyone else has
seen this ?

For others... Here's a link to the page (and nasty hack) in question
http://www.ckoa.com.sg/philosophy.php

ben

unread,
Dec 7, 2008, 6:34:52 AM12/7/08
to MooTools Users
Hi supert3d,

I'm using Fx.Scroll and it works great with IE7...
Did you see how it's done in the official demos? : http://demos111.mootools.net/Fx.Scroll

There you can see what code has to be used...

Noktor

unread,
Dec 12, 2008, 6:04:36 AM12/12/08
to MooTools Users
Got same issue.
It's ok with mootools v1.11.
Only bugging with v1.2.x, whether IE6 or IE7.
Supert3d, would you mind give some details about how you cured it ?

Thanks a lot.

Noktor

unread,
Dec 12, 2008, 7:00:00 AM12/12/08
to MooTools Users
OK, found a workaround here :
http://www.mooforum.net/help12/scroll-scroll-element-then-back-t814.html

Quickly tested with IE7, but not yet with IE6.
Will let you know asap.

Noktor

unread,
Dec 12, 2008, 9:28:26 AM12/12/08
to MooTools Users
Also successfully tested with IE6 now.

bluff

unread,
Dec 12, 2008, 11:26:53 AM12/12/08
to MooTools Users
Hi,

I also had this problem!!

So I wrote an extension to Fx.Scroll called Fx.GridScroll which sorts
out the scrolling problem in IE works with IE6 & IE7 I haven't tested
it on IE8 yet.

you can get it from here: http://www.shaunfreeman.co.uk/index.php?page=29

I haven't written any docs yet but there is a demo using a class
called Fx.SmoothAnchors which extends Fx.GridScroll which I wrote
because I couldn't get the mootools plugin SmoothScroll to work.

Hope this helps
Shaun

e1zorro

unread,
Dec 13, 2008, 1:29:56 PM12/13/08
to MooTools Users
Glad it helped.

Noktor

unread,
Dec 14, 2008, 4:51:24 PM12/14/08
to MooTools Users
Hi e1zorro.
Scroll is a feature that is surely used a lot by many people.
Have you thought about submitting your hack to the mootools
developers, for the benefit of the community ?
Sorry if you are actually part of their team and I don't know it. I'm
just a newbie.

El Zorro

unread,
Dec 15, 2008, 1:34:58 AM12/15/08
to mootool...@googlegroups.com
Well, actually I've not - because it IS a hack ;-), and mootools deserves a better solution.

I've not actually taken the time diagnose the root cause of the issue, or even work out what steps are needed to reproduce it (the site I'm currently working on is much to complex to easily diagnose things like that)

I just saw that what was working for me in 1.2.0 stopped working in 1.2.1 so all I did was diff them to see what had changed and then implemented the v1.2.0 positioning/offset calculations in an extension to the 1.2.1 scroll class.

It's possible all they need to do is rollback to 1.2.0's way of doing things - but I assume they changed things for a reason...

Cheers

-e1z-
Reply all
Reply to author
Forward
0 new messages