deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Scroll

Image

//left button event
function move_left() {
$("[name=reward_div]").animate({
'scrollLeft': $("[name=reward_div]").scrollLeft() - 350
}, {
complete: function() {
scroll_move_left();
}
});
}
//right button event
function move_right() {
$("[name=reward_div]").animate({
'scrollLeft': $("[name=reward_div]").scrollLeft() + 350
}, {
complete: function() {
scroll_move_right();
}
});
}
//set left right arrow button at page show
function set_left_right_button() {
//left button
if ($("[name=reward_div]").scrollLeft() 0) {
Appery("btn_left").css("background-color", "#BFD770");
} else {
Appery("btn_left").css("background-color", "#B5B4B5");
Appery("btn_left").attr("disabled", "disabled");
}

Code: Select all

 //right button 
 //if (width  window.screen.width) { 
 if (width  1280) { 
     Appery("btn_right").css("background-color", "#BFD770"); 
 } else { 

     Appery("btn_right").css("background-color", "#B5B4B5"); 
     Appery("btn_right").attr("disabled", "disabled"); 
 } 

}
//right button click
function scroll_move_right() {
//button left
if ($("[name=reward_div]").scrollLeft() 0) {
//enable
Appery("btn_left").css("background-color", "#BFD770");
Appery("btn_left").removeAttr("disabled");
} else {
//disable
Appery("btn_left").css("background-color", "#B5B4B5");
Appery("btn_left").attr("disabled", "disabled");
}
//button right
if ($("[name=reward_div]").scrollLeft() = (width - $("[name=reward_div]").outerWidth() - 1)) {

Code: Select all

     //enable 
     Appery("btn_right").css("background-color", "#B5B4B5"); 
     Appery("btn_right").attr("disabled", "disabled"); 
 } else { 
     //disable 
     Appery("btn_right").css("background-color", "#BFD770"); 
     Appery("btn_right").removeAttr("disabled"); 
 } 

}
//left button click
function scroll_move_left() {
//button left
if ($("[name=reward_div]").scrollLeft() 0) {
//enable
Appery("btn_left").css("background-color", "#BFD770");
} else {
//disable
Appery("btn_left").css("background-color", "#B5B4B5");
Appery("btn_left").attr("disabled", "disabled");
}
//button right
if ($("[name=reward_div]").scrollLeft() < (width - $("[name=reward_div]").outerWidth() - 1)) {
Appery("btn_right").css("background-color", "#BFD770");
Appery("btn_right").removeAttr("disabled");
}
}

this code is scroll for left and right button
Appery web is good
in Samsung Galaxy tab 2 is not working

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Scroll

Hello!

You need to debug your code.
Please take a look here:
http://devcenter.appery.io/documentat...

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Scroll

web is good and Android 4.2.2 is good
Android 4.0.3 and 4.0.4 is not working
No error about scroller
can you check for us?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Scroll

Hello,

Could you please share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us its name http://docs.appery.io/documentation/s... ?

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Scroll

You can test it here:
http://appery.io/app/view/0ae8ad7a-87...

The project is called:
scroller_test_backup

When clicking the left or right button the "Hello Hello .." text should scroll horizontally.

It works fine in Android 4.2.x (tested on galaxy tab2 4.2.2) via appery tester app

But it fails to scroll (doesn't work) in Android 4.0.x (tested on galaxy tab 4.0.2)

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Scroll

You can test it here:

The project is called:
scroller_test_backup

When clicking the left or right button the "Hello Hello .." text should scroll horizontally.

It works fine in chrome desktop web browser

It works fine in Android 4.2.x (tested on galaxy tab2 4.2.2) via appery tester app

But it fails to scroll (doesn't work) in Android 4.0.x (tested on galaxy tab 4.0.2)

Thanks in advance.

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Scroll

Hello!

Unfortunately we do not have galaxy tab 4.0.2.
We have tested your application in Android 4.0.3 (HTC One V).
We were unable to reproduce your problem on this device.
Text "Hello..." scrolls horizontally to the left and to the right, after clicking buttons.

Please also specify do you test your application uploading to device, or using mobile browser?

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Scroll

You need to make apk.
not appery tester or browser

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Scroll

Hello,

The link you provided above is not working anymore, so we can't test it even in browser. Could you please share your project for we could test it on device?

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Scroll

I have made link public. Let me know how you go
http://appery.io/app/view/02877e67-29...

Return to “Issues”