Page 2 of 2

Scroller

Posted: Tue Jun 03, 2014 12:33 pm
by deveu

do you think same code should work in iphone
that is ok with web browser

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


Scroller

Posted: Tue Jun 03, 2014 12:50 pm
by Evgene Karachevtsev

Deveu,

Look like it should. Could you please test it with device and contact us with feedback?


Scroller

Posted: Fri Jun 27, 2014 10:21 am
by Kateryna Grynko

Hi,

Did you test this?


Scroller

Posted: Fri Jun 27, 2014 11:23 am
by deveu

it is ok