Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions app/controllers/public/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ export default class SessionsController extends Controller {

@action
sessionChanged() {
if (this.model.isFiltering) {
$('html,body').animate({
scrollTop: $('#session-heading').offset()?.top
});
}
this.set('preserveScrollPosition', true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why created this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After only removing session changed whenever we click on filter page will reload and moves up using previous scoll position this well save the earlier scroll postion of page and didnt moves the page up and down

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good work @akash2408

$('html,body').animate({
scrollTop: $('#session-heading').offset()?.top
});
}

@computed('model.event.startsAt', 'model.event.endsAt', 'timezone')
Expand Down