Skip to content

Commit 05207d5

Browse files
committed
Removed linter problems
1 parent bb4a75f commit 05207d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/utils/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ function findPos (obj) {
361361
function getEyeFocus (element, instantly, isBottom, myWindow) {
362362
if (!myWindow) myWindow = window
363363
const elementPosY = findPos(element)[1]
364-
let appContext = window.SolidAppContext || {};
365-
var scrollDiff = appContext && appContext.scroll || 52 // 52 = magic number for web-based version
366-
var totalScroll = elementPosY - scrollDiff - myWindow.scrollY;
364+
const appContext = window.SolidAppContext || {}
365+
const scrollDiff = (appContext && appContext.scroll) || 52 // 52 = magic number for web-based version
366+
const totalScroll = elementPosY - scrollDiff - myWindow.scrollY
367367

368368
if (instantly) {
369369
if (isBottom) {

0 commit comments

Comments
 (0)