Fix safe seeking before  end pos. and < 0 correction. Clean-up mouse seeking code