Fix inacurate restriction when starting near edge

... while elementRect is set