diff --git a/apps/remix-ide/src/app-component.js b/apps/remix-ide/src/app-component.js index 601c19206e..e569cc5e15 100644 --- a/apps/remix-ide/src/app-component.js +++ b/apps/remix-ide/src/app-component.js @@ -147,10 +147,10 @@ class AppComponent { { appManager, blockchain }, { getPosition: (event) => { - var limitUp = 36 - var limitDown = 20 - var height = window.innerHeight - var newpos = (event.pageY < limitUp) ? limitUp : event.pageY + const limitUp = 36 + const limitDown = 20 + const height = window.innerHeight + let newpos = (event.pageY < limitUp) ? limitUp : event.pageY newpos = (newpos < height - limitDown) ? newpos : height - limitDown return height - newpos }