OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fixed scrolling behaviour on mobile screens
Jonas Jabari7f5f1f85f905
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.tsindex b235f13fb38..8298575570f 100644--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts@@ -119,8 +119,10 @@ export default class IndexController extends Controller {if (this.updateInProgress) return;this.updateInProgress = true;+ const journalsContainerAtBottom = this.isJournalsContainerScrolledToBottom(this.journalsContainerTarget);+void this.performUpdateStreamsRequest(this.prepareUpdateStreamsUrl()).then(() => {- this.handleUpdateStreamsResponse();+ this.handleUpdateStreamsResponse(journalsContainerAtBottom);}).catch((error) => {console.error('Error updating activities list:', error);}).finally(() => {@@ -145,8 +147,7 @@ export default class IndexController extends Controller {});}- private handleUpdateStreamsResponse() {- const journalsContainerAtBottom = this.isJournalsContainerScrolledToBottom(this.journalsContainerTarget);+ private handleUpdateStreamsResponse(journalsContainerAtBottom:boolean) {this.setLastUpdateTimestamp();// the timeout is require in order to give the Turb.renderStream method enough time to render the new journalssetTimeout(() => {@@ -227,7 +228,7 @@ export default class IndexController extends Controller {}private getInputContainer():HTMLElement | null {- return this.element.querySelector('#work-package-journal-form-element');+ return this.element.querySelector('.work-packages-activities-tab-journals-new-component');}// Code Maintenance: Get rid of these JS based view port checks when activities are rendered in fully primierized activity tab in all contexts