LT-384: Centralizing Study / Series quick switch when sidebars (left and/or right) are opened
This commit is contained in:
1 parent
dc64210b99
commit
3c3b23ccb7
3 files changed
+76
-17
No files matched your search
+10
-2
@@ -48,9 +48,17 @@ Template.studySeriesQuickSwitch.onCreated(() => {
|
||||
});
|
||||
|
||||
const checkScrollArea = element => {
|
||||
const { scrollHeight, clientHeight, offsetHeight, scrollTop } = element;
|
||||
const { scrollHeight, offsetHeight, scrollTop } = element;
|
||||
|
||||
const matrix = $(element).find('.thumbnailsWrapper').css('transform');
|
||||
|
||||
if(scrollHeight > offsetHeight + scrollTop) {
|
||||
let translateY = 0;
|
||||
|
||||
if(matrix && matrix !== 'none') {
|
||||
translateY = parseInt(matrix.match(/-?[\d\.]+/g)[5]);
|
||||
}
|
||||
|
||||
if(scrollHeight > offsetHeight + scrollTop + translateY) {
|
||||
element.classList.add('show-scroll-indicator-down');
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user