You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-28 09:24:05 +03:00
Fix: Remove jittery timeline scrolling after jumping to an event (#8263)
* Fix: Remove jittery timeline scrolling after jumping to an event * Fix: Remove onUserScroll handler and merge it with onScroll * Fix: Reset scrollIntoView state earlier Co-authored-by: Janne Mareike Koschinski <jannemk@element.io>
This commit is contained in:
committed by
GitHub
parent
285dc25b3e
commit
579a166113
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import React, { createRef, KeyboardEvent, ReactNode, SyntheticEvent, TransitionEvent } from 'react';
|
||||
import React, { createRef, KeyboardEvent, ReactNode, TransitionEvent } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import classNames from 'classnames';
|
||||
import { Room } from 'matrix-js-sdk/src/models/room';
|
||||
@@ -170,9 +170,6 @@ interface IProps {
|
||||
// callback which is called when the panel is scrolled.
|
||||
onScroll?(event: Event): void;
|
||||
|
||||
// callback which is called when the user interacts with the room timeline
|
||||
onUserScroll(event: SyntheticEvent): void;
|
||||
|
||||
// callback which is called when more content is needed.
|
||||
onFillRequest?(backwards: boolean): Promise<boolean>;
|
||||
|
||||
@@ -1030,7 +1027,6 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
||||
ref={this.scrollPanel}
|
||||
className={classes}
|
||||
onScroll={this.props.onScroll}
|
||||
onUserScroll={this.props.onUserScroll}
|
||||
onFillRequest={this.props.onFillRequest}
|
||||
onUnfillRequest={this.props.onUnfillRequest}
|
||||
style={style}
|
||||
|
||||
Reference in New Issue
Block a user