mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 12:02:05 +08:00
FIX: removes mousewheel edge case on messages (#30900)
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { concat, hash } from "@ember/helper";
|
||||
import { on } from "@ember/modifier";
|
||||
import { action } from "@ember/object";
|
||||
import { getOwner } from "@ember/owner";
|
||||
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
||||
@ -62,12 +61,6 @@ export default class ChatMessageActionsDesktop extends Component {
|
||||
this.messageInteractor.openEmojiPicker(event.target);
|
||||
}
|
||||
|
||||
@action
|
||||
onWheel() {
|
||||
// prevents menu to stop scroll on the list of messages
|
||||
this.chat.activeMessage = null;
|
||||
}
|
||||
|
||||
@action
|
||||
setup(element) {
|
||||
this.popper?.destroy();
|
||||
@ -119,7 +112,6 @@ export default class ChatMessageActionsDesktop extends Component {
|
||||
<div
|
||||
{{didInsert this.setup}}
|
||||
{{didUpdate this.setup this.chat.activeMessage.model.id}}
|
||||
{{on "wheel" this.onWheel passive=true}}
|
||||
{{willDestroy this.teardown}}
|
||||
class={{concatClass
|
||||
"chat-message-actions-container"
|
||||
|
Reference in New Issue
Block a user