middle click management for plot widget