clamp for borderscrolling (broken)