haxeui-flixel icon indicating copy to clipboard operation
haxeui-flixel copied to clipboard

Error with "negative offsets" for native cursors

Open AdamHarte opened this issue 1 year ago • 2 comments

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 (7d9b1af2061df47a9659e8c7445e468e61e81cf1)

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

AdamHarte avatar Nov 03 '24 01:11 AdamHarte