Capture the range value

In a 2D plot we can quickly provide the range by clicking or dragging on the corner of the plot. Is there a way to capture the value once the user has provided some range that way.
For example lets take the top-left corner to provide the y axis top limit. Now, if I click on the corner (selector #graphDiv > div > div > svg:nth-child(1) > g.draglayer.cursor-crosshair > g > rect.ndrag.drag.cursor-n-resize), a number appear, if you put some value there the graph will set the value as its top limit. Now, how do I capture that value, is there any event that plotly emit that I can listen to? I can listen to the relayout event but how do I know that this event is emitted for setting the range through the corner approach?