use position relative to viewport for mouse detection