Open deco-dev opened 1 year ago
I found the code.
if ((event.type == 'wheel') || this.get('prevent_default_action')) {
// Really want both of these, one to stop any default action
// and the other to ensure no other listeners pick it up.
event.preventDefault()
event.stopPropagation()
}
why does default action prevent if wheel?
Sorry for the long delay -- if I remember right, the wheel event is not propagated to make sure that the notebook itself does not scroll. In this specific case -- a scrollable TextArea
in a notebook -- I think allowing propagation would be fine because I suspect that the TextArea
itself stops further propagation.
Is there another event you could monitor besides wheel
, or make observe for a change in value
of the TextArea
? I can take a look next week at which widgets are themselves scrollable to try to avoid this issue for those widgets.
I tested above code, the default wheel action does not work. The textarea scroll does not move. I want to know scroll movement of textarea.