Editor: fix wrong middle click handling.