Merge pull request #10192 from druiz17/tablet-webview-fix

webview go back to previous page fix
This commit is contained in:
Seth Alves 2017-04-11 12:11:43 -07:00 committed by GitHub
commit f555ae253f

View file

@ -40,7 +40,7 @@ Item {
anchors.leftMargin: 8
HiFiGlyphs {
id: back;
enabled: currentPage > 0
enabled: currentPage >= 0
text: hifi.glyphs.backward
color: enabled ? hifistyles.colors.text : hifistyles.colors.disabledText
size: 48
@ -107,6 +107,8 @@ Item {
function goBack() {
if (currentPage > 0) {
currentPage--;
} else if (parentStackItem) {
parentStackItem.pop();
}
}