Coder Social home page Coder Social logo

Comments (3)

ParodyGames avatar ParodyGames commented on July 20, 2024

Not super familiar with Github, or how to actually submit a proposed fix. But, to fix this behavior in guiCanvas.cc you can add two lines in with the onMouseLeave handling. The updated function should look like this:

void GuiCanvas::findMouseControl(const GuiEvent &event)
{
   if(size() == 0)
   {
      mMouseControl = NULL;
      return;
   }
   GuiControl *controlHit = findHitControl(event.mousePoint);
   if(controlHit != static_cast<GuiControl*>(mMouseControl))
   {
	   if (bool(mMouseControl))
	   {
		   mMouseControl->onMouseLeave(event);
		   hoverControlStart = Platform::getRealMilliseconds();
		   hoverPositionSet = false;
	   }
      mMouseControl = controlHit;
      mMouseControl->onMouseEnter(event);

   }
}

from torque2d.

greenfire27 avatar greenfire27 commented on July 20, 2024

Thanks, ParodyGames! If you checked in the change you could create a pull request by following these instructions: https://github.com/GarageGames/Torque2D/wiki/Contributing#creating-a-new-branch-for-a-pull-request

Give it a try if you want. Otherwise I will create a pull request in a few days with your suggested change. Thanks for contributing!

from torque2d.

greenfire27 avatar greenfire27 commented on July 20, 2024

I tested your fix and it works great. I've merged the code and I'm closing this issue. Thanks again for contributing!

from torque2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.