Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with "negative offsets" for native cursors #57

Open
AdamHarte opened this issue Nov 3, 2024 · 2 comments
Open

Error with "negative offsets" for native cursors #57

AdamHarte opened this issue Nov 3, 2024 · 2 comments

Comments

@AdamHarte
Copy link

I ran through the basic minimal project setup for Flixel and HaxeUI here: https://haxeui.org/getting-started/haxeui-flixel/

Creating the project from the template like this haxelib run haxeui-core create flixel gives a minimal working project. I then ran it for the Flash target using:

lime test flash

But when I hover over any of the buttons I get a runtime error:

Negative offsets aren't supported for native cursors.
at haxe::Exception$/thrown()
at flixel.input.mouse::FlxMouse/load()
at haxe.ui.backend::ScreenImpl/setCursor()
at haxe.ui.backend::ScreenImpl/checkResetCursor()
at haxe.ui.backend.flixel::MouseHelper$/onMouse()
at haxe.ui.backend.flixel::MouseHelper$/onMouseMove()

Running for other platforms does not seem to cause the error. I have not tried with other templates. I could also not get it to happen when creating a simple OpenFL (non-flixel) project using the openfl haxeui guide.

Environment

  • OS: Windows 10
  • Haxe: 4.3.6
  • Flixel: 5.8.0
  • haxeui-core: Latest Git (3ab5f92aedcd128c613582cfb05092f2f9b395a8)
  • haxeui-flixel: Latest Git (7d9b1af)

Not sure if these matter, but I will record them just incase

  • openfl: 9.4.0
  • lime: 8.2.0
  • Flex: 4.16.1
  • AIR: 51.1.2.1
@ianharrigan
Copy link
Member

I assume you are on a mouse device, right? Like a desktop, etc? Or is this a tablet?

simple OpenFL (non-flixel) project using the openfl haxeui guide.

can you expand on this?

@AdamHarte
Copy link
Author

By "simple OpenFL (non-flixel) project", I just meant that I ran through the OpenFL project setup here: https://haxeui.org/getting-started/haxeui-openfl/ . But I see that I did say I didn't try any other templates. So that is confusing. Sorry about that.
So that is basically running haxelib install haxeui-openfl, and that project worked fine, with no errors.

My end target is actually iPad (using Flash/AIR), but for testing I just use windows desktop with the mouse. So it is on windows where I am seeing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants