zorder Pan Bug Fix

Bug: When traces have different zorder values and Plotly.Plots.resize() is called (as react-plotly.js does on mount), the first pan interaction fails — traces freeze while grid lines move. The second pan (and all subsequent pans) work correctly.

To Reproduce the Bug

  1. Open the Before Fix demo
  2. Drag the chart to pan horizontally
  3. First drag: grid lines move but traces stay frozen
  4. Release the mouse and drag again
  5. Second drag: now traces move correctly
  6. Compare with After Fix — first drag works correctly