Disable modebar action on side plot

I have a plot with two side plots. I would like to disable the box select action ONLY on side plots. Is this possible?

Instead of disabling the modebar, I realized that the range of the data includes range.x2 or range.y2. So, if these evaluate to true, I just return my function that handles the box select.

Hmm. Iā€™m not entirely sure what you mean by side plots. Could you share a screenshot or a code snippet?

Thanks!