working on iScroll 5

7,205 views
Skip to first unread message

Matteo Spinelli

unread,
Oct 29, 2012, 11:08:42 AM10/29/12
to isc...@googlegroups.com
It's in pre alpha stage, but I'm working on iScroll 5. You can find a demo here: http://lab.cubiq.org/iscroll5/demos/simple/

You can only test the new scrolling algorithm that should more closely mimic the native one. I'm now working on draggable scrollbars. You'll also be able to put scrollbars outside of the scroller.

Daniel Pegues

unread,
Nov 2, 2012, 1:51:48 PM11/2/12
to isc...@googlegroups.com
I just ran your demo in IE8 for iScroll 4 and it works. It must be ajax in my project that is supposed to scroll.

Franck

unread,
Nov 10, 2012, 12:29:34 PM11/10/12
to isc...@googlegroups.com
tested in a Phonegap app under Android 2.3 and it's pretty fluid !

Alex

unread,
Dec 12, 2012, 1:24:50 PM12/12/12
to isc...@googlegroups.com
Ciao Marco,

This looks great!
Is there anything you plan to do for it to work in IE8? It would be great, as IE8 is still pretty much in use.
If not, do you have any suggestions as to what one could do to try make the current version work with IE8?

Thanks

Patrick Rouillier

unread,
Dec 13, 2012, 2:29:13 AM12/13/12
to isc...@googlegroups.com
One feature i should like (if possible !) is to have Iscroll working as a "responsive internet site", means having wrapper and scroller with and height defined in terms of % instead of px.


Le lundi 29 octobre 2012 16:08:42 UTC+1, Matteo Spinelli a écrit :

daslicht

unread,
Dec 13, 2012, 7:17:57 AM12/13/12
to isc...@googlegroups.com
Very smooth, even the bounce looks very fluid !
Great work , Thank you very much !

Matteo Spinelli

unread,
Dec 14, 2012, 3:21:03 AM12/14/12
to isc...@googlegroups.com
that should actually work. at each page resize the wrapper size is recalculated... so..

Matteo Spinelli

unread,
Dec 14, 2012, 3:24:04 AM12/14/12
to isc...@googlegroups.com
I don't know, it is technically feasible, but it's time to drop old browsers compatibility and suggest users to upgrade. If it doesn't mess up the code I'll be adding IE8 compatibility

Matteo

arie....@gmail.com

unread,
Jan 1, 2013, 11:09:08 AM1/1/13
to isc...@googlegroups.com
Matteo - nice demo.
I would like to use iScroll on Windows Phone 8.
Any idea when iScroll5 will be ready to download (even alpha)? Or, can you give hints of what to do/change so it will work on WP8.
Thanks,
Arie

Gregory Koberger

unread,
Feb 22, 2013, 1:40:05 AM2/22/13
to isc...@googlegroups.com
Very smooth scrolling.

How hard would it be to copy+paste the new scrolling algorithm into iScroll4?

(Is this still under development? Any ETA?)

Mathias Valentin

unread,
Feb 25, 2013, 3:26:06 AM2/25/13
to isc...@googlegroups.com
Very nice - I'm looking forward to the update! 

I have a small suggestion:
As more and more devices supports both touch and normal (mouse/keyboard) inputs. Ex. ms surface and chromebook pixel. I think iScroll should be able to add both sets of event-handling (at the same time)! As far as I can see, that's not the case right now?

Matteo Spinelli

unread,
Feb 25, 2013, 7:58:58 AM2/25/13
to isc...@googlegroups.com
I'm in the middle of a big project, when finished I'll be back on iscroll.

it just misses a couple of days of development. I'm willing to add all touch devices compatibility but I miss the devices, and nobody is willing to help me on that :P

M.

John Connor

unread,
Apr 1, 2013, 5:49:37 AM4/1/13
to isc...@googlegroups.com
Hey Matt,

I have tested with iPhone-5, it's pretty cool and awesome.

Just one thing to say, i was enable to scroll from input box on device. it really help user to scroll on page when there is list of input box, textarea, etc. on device with touch.

paul...@koalapub.co.uk

unread,
Apr 4, 2013, 6:40:40 AM4/4/13
to isc...@googlegroups.com
Hi Matt,

Any ideas on the time scale for beta release of iScroll 5?

Thanks,

Paul

Matteo Spinelli

unread,
Apr 5, 2013, 10:43:13 AM4/5/13
to isc...@googlegroups.com
Sorry for this taking so long.

I decided to make the code modular using gruntjs. I had to rebuild the script almost from scratch, but I'm working on it on a daily basis, so it shouldn't take long.

Matteo

Jordan Austin

unread,
May 11, 2013, 12:18:59 AM5/11/13
to isc...@googlegroups.com
Hi Matteo,
your grunt build system looks great. Looking at recent checkins I see your scrollbar code. By setting the option: interactiveScrollbars: true, it appears to have issues still. Are you looking for bug reports here for that or are you still in the middle of that?

Matteo Spinelli

unread,
May 13, 2013, 3:24:30 AM5/13/13
to isc...@googlegroups.com
I'm in the middle of it but please report bugs if you see them.

Thanks
Matteo

Tin Nguyen

unread,
May 20, 2013, 1:26:41 AM5/20/13
to isc...@googlegroups.com
Can you guess about ETA?
Message has been deleted

Eric Walters

unread,
May 21, 2013, 2:01:41 PM5/21/13
to isc...@googlegroups.com
I saw in another thread that iScroll 5 will be compatible with Windows Phone 8.  Will it also be compatible with Windows RT / Windows 8 apps?

Matteo Spinelli

unread,
May 23, 2013, 2:18:05 PM5/23/13
to isc...@googlegroups.com
Hopefully, yes.

Matt

Matteo Spinelli

unread,
May 23, 2013, 2:18:37 PM5/23/13
to isc...@googlegroups.com
It's ready, I'm pushing Beta1 in the next few hours.

Matteo

Jordan Austin

unread,
May 24, 2013, 1:31:23 PM5/24/13
to isc...@googlegroups.com
Hi Matteo,
By setting interactiveScrollbars: true, it'll allow you to interact with the scrollbars, but shouldn't this allow content scrolling by dragging the scrollbars?

What's the correct way of doing this? I have a feeling I'm just not reading your code right. 

Thanks,
Jordan

Matteo Spinelli

unread,
May 24, 2013, 1:43:27 PM5/24/13
to isc...@googlegroups.com
Sorry Jordan, I'm afraid I'm not following you.

interactiveScrollbars lets you scroll by dragging the indicator.

Matteo 

Jordan Austin

unread,
May 24, 2013, 1:52:03 PM5/24/13
to isc...@googlegroups.com
Hey Matteo, 
currently using interactiveScrolbars: true - I can scroll the indicator but the Y position doesn't change. Notice in this screenshot the scrollbar indicator is all the way to the bottom but the content is still at row 1 (Y position = 0): https://www.dropbox.com/s/xze94uyqngztyx6/Screen%20Shot%202013-05-24%20at%2010.46.16%20AM.png

Do you have a working example of draggable scrollbars? Currently your scrollbar demos show the indicator but do now allow you to drag them.

Thanks,
Jordan

Matteo Spinelli

unread,
May 24, 2013, 2:00:34 PM5/24/13
to isc...@googlegroups.com
The minimap uses the same code ( http://lab.cubiq.org/iscroll5/demos/minimap/ ) and seems to work. I'll double check the scrollbars. Thanks for your report.

Matteo

Jordan Austin

unread,
May 24, 2013, 2:20:04 PM5/24/13
to isc...@googlegroups.com
Yeah, I was referencing the minimap, since that seems to work well. I can do further testing to see if I can get it to work, but in the current state just using the interactiveScrollbars option doesn't seem to behave correctly.

Jordan

Matteo Spinelli

unread,
May 24, 2013, 2:26:16 PM5/24/13
to isc...@googlegroups.com
Fixed!

Matt

Jordan Austin

unread,
May 24, 2013, 2:33:08 PM5/24/13
to isc...@googlegroups.com
Gosh, you're amazing. I'll do a little testing on it now. 

Thanks!
Jordan

Jordan Austin

unread,
May 24, 2013, 3:05:05 PM5/24/13
to isc...@googlegroups.com
Yep, it's working great now. I was able to test this on desktop browsers, but also on iPad, iPod touch, Chromebook, Chrome Android, Android webview. All working exactly as expected, awesome!

IE10 on Surface has issues in general, so it wasn't a surprise to me that scrollbars don't work here. Do you have plans for IE10 support?

Thanks,
- Jordan

Matteo Spinelli

unread,
May 24, 2013, 5:33:52 PM5/24/13
to isc...@googlegroups.com
yes, IE10 comes next.

Paul van der Meer

unread,
May 28, 2013, 12:51:56 AM5/28/13
to isc...@googlegroups.com
Hi Matteo,

Will iscroll5 also support the myScroll.scrollToElement function?

Thanks
Paul

Op maandag 29 oktober 2012 23:08:42 UTC+8 schreef Matteo Spinelli het volgende:

Matteo Spinelli

unread,
May 28, 2013, 11:04:02 AM5/28/13
to isc...@googlegroups.com
indeed!

unbug lee

unread,
May 29, 2013, 3:09:35 AM5/29/13
to isc...@googlegroups.com
Hi,Metteo,the demo works great!Due to it's still alpha,is there anything we should know if we deploy it to our project right now?

Matteo Spinelli

unread,
Jun 3, 2013, 1:56:29 AM6/3/13
to isc...@googlegroups.com
iScroll 5 is mow in beta. It seems pretty stable but you could wait another week to see if nasty bugs come out.

Matteo
Message has been deleted

grea...@gmail.com

unread,
Jun 5, 2013, 11:10:02 AM6/5/13
to isc...@googlegroups.com
Hi Matteo,

good to see things flowing.

- are there any specific requirements to run it on FF and IE10? Chrome works fine for me, but atm I am not able to make it work with the rest
- I cant get focus on input  elements in any tested browser
- onclick events are not fired in Android  (DIV)

John

Matteo Spinelli

unread,
Jun 7, 2013, 1:57:35 PM6/7/13
to isc...@googlegroups.com
Hey John,



- are there any specific requirements to run it on FF and IE10? Chrome works fine for me, but atm I am not able to make it work with the rest

FF should work. I'll work on IE10 tomorrow.
 
- I cant get focus on input  elements in any tested browser

try to set the click:true option
 
- onclick events are not fired in Android  (DIV)


More info please (browser? device? os version?)

Matt

grea...@gmail.com

unread,
Jun 10, 2013, 5:02:37 AM6/10/13
to isc...@googlegroups.com
HTC Onex X+, Android 4.1.1, default browser

Clicks on DIVs works fine with "click" option FALSE, event is fired twice with "click" option TRUE

Win7 x64, Chrome  27.0.1453.94 m, IE10, Firefox 21

Still cant get focus on INPUT fields. In FF,IE mouse scroll does not work.

HTH
John

Matteo Spinelli

unread,
Jun 10, 2013, 2:06:35 PM6/10/13
to isc...@googlegroups.com
Android 4 doesn't need click:true because we can't preventDefault on touch start. If we do the scroll stops working. I'd say it's a bug of the default browser since no other browser behaves that way.

Input fields work only with useTransform:false for now.

Mouse scroll works for me on all browsers. Please check the latest version.

Matteo

grea...@gmail.com

unread,
Jun 11, 2013, 4:50:32 AM6/11/13
to isc...@googlegroups.com
Yes it is propably Android bug since 4.1. IE is now fine. I had invalid flexbox syntax. I still have problems with FF and CSS. But I guess its OK with IScroll too.

I have latest version now and input fields works on Android.  But NOT on any desktop browser even with useTransform:false.

John

grea...@gmail.com

unread,
Jun 12, 2013, 10:03:38 AM6/12/13
to isc...@googlegroups.com
Another weird things:

- with useTransform:false I cant scroll. Only with native scroll. Mouse wheel on desktop, touchmove on Android4+.
- with useTransform:true and bounce:off I have about 30% extra space at the end of a page.
- on desktop browsers click events are fired even if I just "drag-scroll" the list
- I have weird collision here on IE and Chrome. At certain points I am not able to scroll (drag-scroll) to the bottom or  the top of a page. Not with mousewheel too.Only thing that helps is combination of dragging and mousewheel.
- on Android momentum scroll stops too fast and its not smooth, classic touch-move-scroll works fine here but also with extra space at the bottom of the page

John

Matteo Spinelli

unread,
Jun 12, 2013, 6:28:31 PM6/12/13
to isc...@googlegroups.com
please check the latest version. for each test report OS and browser vendor and version. if you are not using the default demos send a link to your installation. if you are using the provided demos, please let me know which one.

thanks!
Matteo

grea...@gmail.com

unread,
Jun 13, 2013, 3:23:30 AM6/13/13
to isc...@googlegroups.com
I've made a test setup here http://212.24.137.227:8380/public/ 

No change with the latest version. Win7 x64/Chrome 27.0.1453.110 m, Android 4.1.1 HTC ONE X+default browser

I started with this http://lab.cubiq.org/iscroll5/demos/simple/ . It works quite fine, but I wasnt able to get it work on my page. Two notes to the demo:

when scrolling with momentum (Android browser)
  - 1px white line is visible in header. full width and about 5px from the bottom of the header.
  - scrolling is unstoppable (with tap)

John

ason...@entrib.com

unread,
Jun 24, 2013, 8:08:40 AM6/24/13
to isc...@googlegroups.com
Has anyone tries horizontal scrolling on iScroll5?
I tried horizontal scrolling but the bounce is not smooth.
Pls post a demo

Matteo Spinelli

unread,
Jun 28, 2013, 4:52:00 AM6/28/13
to isc...@googlegroups.com
There's a horizontal demo.

Gareth Murphy

unread,
Aug 8, 2013, 6:39:48 AM8/8/13
to isc...@googlegroups.com
I'm noticing this behavior as well... through trial and error I can manage to get the scrolling working as in the demos (rather than the janky, momentum-less results I seem to be getting most of the time, but can't trace to an actual culprit), however even then interrupting the scrolling doesn't work well; it seems to pick up on the new location, but the current scroll momentum animation just continues on and after finished the scroller skips to the new location instantly.

Daniel White

unread,
Jan 31, 2014, 1:26:48 AM1/31/14
to isc...@googlegroups.com
@Gareth ,

Ever find a solution for the funky momentum? I'm dealing with it right now on 5.1.1.

Thanks,
Reply all
Reply to author
Forward
0 new messages