PLT-6890 Fix various scrolling issues (#6727)
* Fix various scrolling issues * Move reaction scrolling to reaction list * Handle scrolling when RHS opens * Only run scroll update code when posts change
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b01da39887
Коммит
ca8d57c4db
@@ -4,11 +4,11 @@
|
||||
import * as TextFormatting from './text_formatting.jsx';
|
||||
import * as SyntaxHighlighting from './syntax_highlighting.jsx';
|
||||
|
||||
import {postListScrollChange} from 'actions/global_actions.jsx';
|
||||
|
||||
import marked from 'marked';
|
||||
import katex from 'katex';
|
||||
|
||||
import ScrollStore from 'stores/scroll_store.jsx';
|
||||
|
||||
function markdownImageLoaded(image) {
|
||||
if (image.hasAttribute('height') && image.attributes.height.value !== 'auto') {
|
||||
const maxHeight = parseInt(global.getComputedStyle(image).maxHeight, 10);
|
||||
@@ -22,7 +22,8 @@ function markdownImageLoaded(image) {
|
||||
} else {
|
||||
image.style.height = 'auto';
|
||||
}
|
||||
ScrollStore.emitPostScroll();
|
||||
|
||||
postListScrollChange();
|
||||
}
|
||||
global.markdownImageLoaded = markdownImageLoaded;
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user