Skip to content

Commit

Permalink
saba-ja: Fixes #21 Event scroll bottom issue
Browse files Browse the repository at this point in the history
  • Loading branch information
janamian authored and LeStarch committed Aug 18, 2021
1 parent 24c9168 commit ac4ecae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fprime_gds/flask/static/js/vue-support/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ Vue.component("event-list", {
*/
onScroll(e) {
let elmH = this.scrollableElm.scrollHeight;
let elmT = Math.abs(this.scrollableElm.scrollTop);
let elmT = this.scrollableElm.scrollTop;
let elmC = this.scrollableElm.clientHeight;
let isAtBottom = ((elmH - elmT) === elmC) && (elmT !== 0);
let isAtBottom = (Math.abs(elmH - elmT - elmC) <= 3.0) && (elmT !== 0);

if (!this.isScrollable()) {
// Disabling auto update user scrolls
Expand Down

0 comments on commit ac4ecae

Please sign in to comment.