1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 10:24:46 +02:00

Add some more debugging flags

This commit is contained in:
Alexander Skvortsov
2020-07-06 19:16:20 -04:00
committed by Franz Liedke
parent beab8ce39c
commit c150c097c1

View File

@@ -281,6 +281,7 @@ export default class PostStream extends Component {
* @return {jQuery.Deferred} * @return {jQuery.Deferred}
*/ */
scrollToNumber(number, noAnimation) { scrollToNumber(number, noAnimation) {
console.log('scrollToNumber');
const $item = this.$(`.PostStream-item[data-number=${number}]`); const $item = this.$(`.PostStream-item[data-number=${number}]`);
return this.scrollToItem($item, noAnimation).done(this.flashItem.bind(this, $item)); return this.scrollToItem($item, noAnimation).done(this.flashItem.bind(this, $item));
@@ -296,6 +297,7 @@ export default class PostStream extends Component {
* @return {jQuery.Deferred} * @return {jQuery.Deferred}
*/ */
scrollToIndex(index, noAnimation, bottom) { scrollToIndex(index, noAnimation, bottom) {
console.log('scrollToIndex');
const $item = this.$(`.PostStream-item[data-index=${index}]`); const $item = this.$(`.PostStream-item[data-index=${index}]`);
return this.scrollToItem($item, noAnimation, true, bottom); return this.scrollToItem($item, noAnimation, true, bottom);
@@ -313,6 +315,7 @@ export default class PostStream extends Component {
* @return {jQuery.Deferred} * @return {jQuery.Deferred}
*/ */
scrollToItem($item, noAnimation, force, bottom) { scrollToItem($item, noAnimation, force, bottom) {
console.log('scrollToItem');
const $container = $('html, body').stop(true); const $container = $('html, body').stop(true);
if ($item.length) { if ($item.length) {