Skip to content

Error with "negative offsets" for native cursors #57

Description

@AdamHarte

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions