Skip to content

Commit d16b5c3

Browse files
authored
Merge pull request #1 from tylkomat/patch-1
only adjust viewport when beginning of buffer is not reached angular-ui#172
2 parents 06d4ef3 + 8509c34 commit d16b5c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modules/viewport.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ export default function Viewport(elementRoutines, buffer, element, viewportContr
163163
}
164164
else {
165165
topPadding.height(0);
166-
viewport.scrollTop(viewport.scrollTop() - paddingHeight);
166+
if(buffer.bof === false) {
167+
viewport.scrollTop(viewport.scrollTop() - paddingHeight);
168+
}
167169
}
168170
},
169171

0 commit comments

Comments
 (0)