Skip to content

Commit

Permalink
Prevent knob from scrolling away the app
Browse files Browse the repository at this point in the history
  • Loading branch information
recumbentbirder committed Jul 26, 2018
1 parent 63cb3cf commit 931ea53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ window.onload = function() {
setupMetrics();
}

// don't scroll
window.onscroll = function() {
window.scrollTo(0,0);
}

// todo: debugging only
function toggleShorePower() {
if (metricService.metrics['Ac/Grid/IsConnected'].rawValue == 0) {
Expand Down

0 comments on commit 931ea53

Please sign in to comment.