Coder Social home page Coder Social logo

Multiple click event firing about ezgui HOT 6 OPEN

mourice avatar mourice commented on September 27, 2024
Multiple click event firing

from ezgui.

Comments (6)

glaucomorais avatar glaucomorais commented on September 27, 2024

In my case he fires twice.

from ezgui.

glaucomorais avatar glaucomorais commented on September 27, 2024

Ok.

I found an interesting fact: when the button is inside a Window component, the click callback is called one time by the window context and one time for the button context.

Phaser: 2.6.2
EZGUI: 0.3.3 beta

from ezgui.

glaucomorais avatar glaucomorais commented on September 27, 2024

A brief update:
In my case when I have a unique button inside a Window, the click event is triggered twitce.

from ezgui.

glaucomorais avatar glaucomorais commented on September 27, 2024

Another update:
Only the last children button has the click event triggered twice.

from ezgui.

mourice avatar mourice commented on September 27, 2024

I have solution for this. I didn’t remember it right now but I will post an ans in a day for sure

from ezgui.

glaucomorais avatar glaucomorais commented on September 27, 2024

I actually added a extra button and set the position to be off-screen.

from ezgui.

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.