title: SFML mouse button released is spamming
body: <p>I am using SFML and C++ and I am getting an odd problem,</p>
  
  <p>Here is my main game update method</p>
  
  <pre><code>while (renderService.Window.isOpen())
  {
      //Poll events
      sf::Event event;
      while (renderService.Window.pollEvent(event))
      {
          if (event.type == sf::Event::Closed)
              renderService.Window.close();
          running = false;
      }
  
      MouseMovment(event);
      MouseClick(event);
      Update();
      Draw();
  }
  </code></pre>
  
  <p>and here is my MouseClick method</p>
  
  <pre><code>void Game::MouseClick(sf::Event event)
  {
  sf::Vector2i position = sf::Mouse::getPosition(renderService.Window);
  
      if (event.mouseButton.button == sf::Mouse::Left &amp;&amp; event.type == sf::Event::MouseButtonReleased)
      {
          std::cout &lt;&lt; "Mouse released" &lt;&lt; std::endl;
      }
  }
  </code></pre>
  
  <p>now here is the weird part, in my console sometimes my cout will be spammed like 10/20 times, but sometimes it will work perfectly, am I calling the event wrongly?</p>