Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In 11.13 event handler can not be removed anymore

See original GitHub issue

The following code worked as expected in 11.12:

final EventType<T> eventType = ...
final EventHandler<? super T> eventHandler = ...

FXGL.getInput().addEventHandler(eventType, eventHandler);

//Now the event handler is registered and the program reacts on user interaction

FXGL.getInput().removeEventHandler(eventType, eventHandler);

//The handler has been removed and the program does not react on the user interaction anymore

With an update to 11.13 the removeEventHandler does not work anymore. The event handler is still registered.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

AlmasBcommented, Feb 15, 2021

The setZ() semantics changed in 11.13 since we now support 3D. Please use setZIndex() to set z-index. Let me know if it works

On Mon, 15 Feb 2021, 1:23 pm Hendrik Ebbers, wrote:

Looks like it is related to the Z index. My shapes are part of the scene but with the update they are all behind entities that have a lower Z-Index

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe .

hendrikebberscommented, Feb 15, 2021

yes, that solves the problem 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Process | Node.js v19.3.0 Documentation
js empties its event loop and has no additional work to schedule. Normally, the Node.js process will exit when there is no work...
Read more >
javascript - If a DOM Element is removed, are its listeners also ...
The event handler is attached to body and not #someEl, naturally the handler shouldn't be removed as long as body is still here....
Read more >
Handling Events | Smartface Docs - smartface/native
Events can be terminated easily. info. While the callbacks are deprecated, they will still be usable and will not be removed in any...
Read more >
Chapter 11: Interim Controls - HUD
the component replacement may not be abatement, but may be conducted as an interim control. See. Appendix 6, regarding the applicable regulations.
Read more >
4.8.8 The video element - HTML Standard - WhatWG
If a src attribute of a media element is set or changed, the user agent must invoke the media element's media element load...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found