mirror of https://github.com/vector-im/riot-web
Merge pull request #6670 from matrix-org/palid/fix/difficult-to-grab-scrollbar
Fix resizer for detachingpull/21833/head
commit
4d7b6f3c4d
|
@ -84,7 +84,7 @@ export default class Resizer<C extends IConfig = IConfig> {
|
|||
}
|
||||
|
||||
public detach() {
|
||||
const attachment = this?.config?.handler.parentElement ?? this.container;
|
||||
const attachment = this?.config?.handler?.parentElement ?? this.container;
|
||||
attachment.removeEventListener("mousedown", this.onMouseDown, false);
|
||||
window.removeEventListener("resize", this.onResize);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue