mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-26 02:57:52 +01:00
[#903] Page now scrolls to top on tab switch
This commit is contained in:
parent
596e193e63
commit
9298f65a35
@ -637,6 +637,7 @@
|
|||||||
if (slideIndex < 0) {
|
if (slideIndex < 0) {
|
||||||
slideIndex = max
|
slideIndex = max
|
||||||
}
|
}
|
||||||
|
window.scrollTo(0, 0);
|
||||||
window.sessionStorage.setItem("NetworkSlideIndex", slideIndex);
|
window.sessionStorage.setItem("NetworkSlideIndex", slideIndex);
|
||||||
var value = slideIndex * percent;
|
var value = slideIndex * percent;
|
||||||
x.style.transition = "0.5s";
|
x.style.transition = "0.5s";
|
||||||
|
@ -910,6 +910,7 @@
|
|||||||
if (slideIndex < 0) {
|
if (slideIndex < 0) {
|
||||||
slideIndex = max
|
slideIndex = max
|
||||||
}
|
}
|
||||||
|
window.scrollTo(0, 0);
|
||||||
window.sessionStorage.setItem("InspectSlideIndex", slideIndex);
|
window.sessionStorage.setItem("InspectSlideIndex", slideIndex);
|
||||||
var value = slideIndex * percent;
|
var value = slideIndex * percent;
|
||||||
x.style.transition = "0.5s";
|
x.style.transition = "0.5s";
|
||||||
|
@ -331,6 +331,7 @@
|
|||||||
if (slideIndex < 0) {
|
if (slideIndex < 0) {
|
||||||
slideIndex = max
|
slideIndex = max
|
||||||
}
|
}
|
||||||
|
window.scrollTo(0, 0);
|
||||||
window.sessionStorage.setItem("AnalysisSlideIndex", slideIndex);
|
window.sessionStorage.setItem("AnalysisSlideIndex", slideIndex);
|
||||||
var value = slideIndex * percent;
|
var value = slideIndex * percent;
|
||||||
x.style.transition = "0.5s";
|
x.style.transition = "0.5s";
|
||||||
|
@ -1542,6 +1542,7 @@
|
|||||||
if (slideIndex < 0) {
|
if (slideIndex < 0) {
|
||||||
slideIndex = max
|
slideIndex = max
|
||||||
}
|
}
|
||||||
|
window.scrollTo(0, 0);
|
||||||
window.sessionStorage.setItem("AnalysisSlideIndex", slideIndex);
|
window.sessionStorage.setItem("AnalysisSlideIndex", slideIndex);
|
||||||
var value = slideIndex * percent;
|
var value = slideIndex * percent;
|
||||||
x.style.transition = "0.5s";
|
x.style.transition = "0.5s";
|
||||||
|
Loading…
Reference in New Issue
Block a user