[TIMOB-13391] Mobile Web: ScrollableView does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-04-05T04:45:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Andrey Verbin |
Assignee | Chris Barber |
Created | 2012-11-23T04:28:26.000+0000 |
Updated | 2014-06-19T12:42:40.000+0000 |
Description
Scrollable view unusable
Problems:
1. It scrolls very badly, not intuitive
2. Sometimes it flickers displaying scrollableview background
3. Does not always show next page, when I tap on an image it disapper
Also
ImageView does not honor it size, width, or height properties. They are equal to image size despite that I set them to 100x100
*Test case*
var wnd = Ti.UI.createWindow();
Ti.UI.backgroundColor = "#FFFFFF"
function scrollableBug() {
var pager = Ti.UI.createScrollableView({
backgroundColor : "green",
size : {
width : 100,
height : 100
}
});
for (var i = 0; i < 10; ++i) {
var image = Ti.UI.createImageView({
image : "http://media.tumblr.com/tumblr_m5hj6qeQ7r1qawqhu.png",
size : {
width : 100,
height : 100
}
});
pager.addView(image);
}
wnd.add(pager);
}
scrollableBug();
wnd.open();
Tested and confirmed in Firefox.
Note: Firefox is not an officially supported browser (desktop browsers in general are not officially supported). Is this reproducible in mobile safari, Android Browser, or Chrome for Android?
Of course, oops! Mobile Safari: The app doesn't even run, it just displays the Appcelerator splash screen. Android Browser: Scrolls fine, although some stuttering does occur if you swipe really fast. Chrome for Android: Same as Android Browser. In answer to the points in the description: 1. Unless you swipe really fast, it scrolls perfectly fine. 2. Doesn't flicker for me. 3. Images don't disappear, and I can move onto the next page. It stutters a bit only if I swipe really fast. I'm going to resolve as Needs More Info -- Andrey, can you clarify what browser(s) you tested this on? Like Bryan says, we don't support desktop browsers, so hopefully you tried it on mobile browsers. Thanks.