Skip to content

[Regression] Drag and drop not working #9274

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

Closed
danielhjacobs opened this issue Jan 23, 2023 · 5 comments
Closed

[Regression] Drag and drop not working #9274

danielhjacobs opened this issue Jan 23, 2023 · 5 comments
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working regression Something was working before, but is now broken

Comments

@danielhjacobs
Copy link
Contributor

Describe the bug

Issue with https://dnalc.cshl.edu/view/16999-Genetic-Traits.html

Ruffle behavior:

Screencast.from.01-23-2023.09.44.41.AM.webm

Expected behavior

Flash behavior:

Screencast.from.01-23-2023.09.44.04.AM.webm

Affected platform

Self-hosted version

Operating system

Linux Fedora 36

Browser

Mozilla Firefox 107

Additional information

No response

@danielhjacobs danielhjacobs added the bug Something isn't working label Jan 23, 2023
@Lord-McSweeney Lord-McSweeney added the A-avm1 Area: AVM1 (ActionScript 1 & 2) label Jan 23, 2023
@n0samu
Copy link
Member

n0samu commented Jan 24, 2023

Code for this is duplicated per drag and drop target, but here is an example of the relevant code, with a trace statement added:

carrier_MC.carrier_bttn.onRelease = function()
{
    stopDrag();
    trace(eval(carrier_MC._droptarget));
    if(eval(carrier_MC._droptarget) == drophere_1)
    {
        drophere_1.gotoAndStop("carrier");
        drop1 = "carrier";
    }

In Flash Player, when I drag the carrier icon onto the nearer "Drop here" box, it traces:
_level0.drophere_1
But in Ruffle, it traces:
_level0.drophere_1.instance9
Considering that Ruffle does not have DisplayObject string paths correctly implemented (see #5492), it's no surprise that this doesn't work.

@danielhjacobs
Copy link
Contributor Author

@Lord-McSweeney
Copy link
Collaborator

@danielhjacobs
Copy link
Contributor Author

I thought the same, but in nightly-2022-12-18...nightly-2022-12-19, the only AVM1 changes are #8613

@danielhjacobs
Copy link
Contributor Author

danielhjacobs commented Jan 24, 2023

Actually, you're right, the actual issue is that #8744, which was supposed to just be AVM2 changes, made incorrect AVM1 changes in core/src/display_object/movie_clip.rs.

@danielhjacobs danielhjacobs changed the title Drag and drop not working [Regression] Drag and drop not working Jan 24, 2023
@Lord-McSweeney Lord-McSweeney added the regression Something was working before, but is now broken label Jan 24, 2023
Dinnerbone pushed a commit to danielhjacobs/ruffle that referenced this issue Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working regression Something was working before, but is now broken
Projects
None yet
Development

No branches or pull requests

3 participants