scroll 2 schedulers together

Ask for help relating to our Sencha Touch based Scheduler (for iPad, or any other supported phone, phablet or tablet)
Post Reply
User avatar
pincherhgz
Posts: 78
Joined: Mon Oct 27, 2014 11:40 am

scroll 2 schedulers together

Post by pincherhgz »

we are using 2 scheduler instances to show different kind of data over the same time axis. We would like to scroll the 2nd scheduler together with the first one.
We tried to define a scrollable/scroller on the first scheduler like:

Code: Select all

...
        scrollable: {
            direction: 'vertical',
            scroller: {
                listeners: {
                    scrollstart: function(component,x,y,eOpts){
                                    scHscrollStartEvents(component,x,y,eOpts);
                                },
                    scrollend: function(component,x,y,eOpts){
                                    scHscrollEndEvents(component,x,y,eOpts);
                                }
                }
            }
        },  
we receive the events, but the y value is just zero. Also setting the scroller of the 2nd scheduler to y values does not have any influence (this was only a try, for sure you use/handle the scrolling internally).

Is there a way how we could manage this ?

User avatar
mats
Core Developer
Core Developer
Posts: 16692
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: scroll 2 schedulers together

Post by mats »

First try doing it with 2 simple Components, or Lists (pure Sencha Touch). Once that works, it'll work with our component as well. It might be better to ask in Sencha forums as they implemented the scrolling part.
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
pincherhgz
Posts: 78
Joined: Mon Oct 27, 2014 11:40 am

Re: scroll 2 schedulers together

Post by pincherhgz »

this all works already fine in other parts of our application. Our problem is that we do not have any event from within the let's say inner scroller that is scrolling the events in the scheduler

User avatar
mats
Core Developer
Core Developer
Posts: 16692
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: scroll 2 schedulers together

Post by mats »

Well, it's just a simple scroller - so if you can obtain a reference to it you can observe it just like any other Touch scroller.
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply