victory v35.4.0 Release Notes
Release Date: 2020-11-25 // over 3 years ago-
- #1748 - Thank you @Hypnosphi!
๐ Support for Global Events
๐ This release adds a concept of global events that are attached to
window
rather than to any of the elements rendered by Victory components. Global events are only supported for "parent" events that would normally be attached tosvg
elements rendered by Victory's containerComponents. Events that should be global can be flagged by includingonGlobal
in the name of the event handler. So, for example, useonGlobalMouseUp
rather thanonMouseUp
to create a global mouse up handler.VictoryBrushContainer uses Global Events
๐
VictoryBrushContainer
now uses global events in itsdefaultEvents
so that brushing continues even as the user's mouse moves outside of the chart area.