-
29 Feb 2012 5:12 AM #11
Hi, this one enable the native scrolling in current sencha 2 beta, but I can not guarantee that it is performant... i do not testet it in production...
if someone can pimp this, let me know!
best regards
PHP Code:// Native scrolling in Browser
document.addEventListener('mousewheel', function(e){
var el = e.target;
var offset, scroller, _results;
_results = [];
while (el !== document.body) {
if (el && el.className && el.className.indexOf('x-container') >= 0) {
var cmp = Ext.getCmp(el.id);
if (cmp && typeof cmp.getScrollable == 'function' && cmp.getScrollable()){
var scroller = cmp.getScrollable().getScroller();
if (scroller) {
var offset = {x:0, y: -e.wheelDelta*0.5};
scroller.fireEvent('scrollstart', scroller, scroller.position.x, scroller.position.y, e);
scroller.scrollBy(offset.x, offset.y);
scroller.snapToBoundary();
scroller.fireEvent('scrollend', scroller, scroller.position.x, scroller.position.y-offset.y);
break;
}
}
}
_results.push(el = el.parentNode);
}
return _results;
}, false);
-
15 Mar 2012 1:20 PM #12
Any news on this?
I have started developing a cross platform application (smartphone, tablet and DESKTOP) using Sencha Touch, but the lack of mouse scrolling is a big concern.
Cheers
-
15 Mar 2012 1:25 PM #13
By the way, @anj, your code (javascript) works perfect in my Chrome browser.
I just placed the code in the index.html.
Thanks a lot!
-
16 Mar 2012 4:58 AM #14Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Sencha isn't going to do this.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 May 2012 1:13 PM #15
-
21 Jun 2012 9:22 AM #16
We are using Sencha Touch for cross platform development. This issue is a consistant problem that is difficult to work around. Specifically, in the case of dropdown (select) menus that that have many options. Users who are not interacting via touch device have a hard time discovering Click-and-Drag as a method of scrolling the list. From all of our usage it seems that mouse wheel scrolling & two-finger scrolling should be default behavior. Can you please provide information to inform why "Sencha isn't goinig do this"?
-
8 Jan 2013 6:45 PM #17
support for dragging scroll bar in ST 2 app
support for dragging scroll bar in ST 2 app
I have an app I have deployed to the iOS and Android stores. Now I am taking the same thing and building a version that also works on the desktop in Chrome/Safari. For this I used the code in this thread to fix the scrolling and now need to figure out how to fix the scroll bar to support dragging and dropping. Any pointers on how this could be accomplished - am going to try to figure it out, but if someone has done it before that would help.
I initially tried to go down the ExtJS path for the desktop app, but found that there are enough differences between the two frameworks that it becomes pretty expensive to develop and maintain, so want to put out a V1 out there quickly and then figure out how to handle this in the long term if I have enough interest to put out one for IE and FireFox - and with desktop based controls.
Sencha touch supporting a bit of the desktop world will become more important as touch and non touch blends with Windows 8 - so it is time to consider this somewhere on the roadmap
-
16 Jan 2013 12:50 PM #18
-
14 Mar 2013 3:06 AM #19
@anj Thanks a lot man, works like a charm in Chrome with SDK 2.1.1

Similar Threads
-
Scrolling in a gridpanel when mouse is on bottom of the grid
By hominis in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 13 Jul 2010, 2:00 AM -
Forms Development Support Framework Poll
By dardison in forum Community DiscussionReplies: 1Last Post: 8 May 2008, 1:05 PM -
Issue Support and Continued Development
By j05h in forum Community DiscussionReplies: 9Last Post: 7 Feb 2007, 7:41 PM


Reply With Quote
