Skip to content

The piece dissappear when you drop the piece near but not exactly in the correct place. #5

Description

@IdeasMX01

The piece dissappear when you drop the piece near but not exactly in the correct place.

I fixed the problem commenting some lines:

if (ui.draggable.data('pos')==slot_pos) { ui.draggable.addClass('correct'); // fix piece //$(this).droppable('disable').fadeIn().fadeOut(); //the piece dissappear. $(this).droppable('disable').css('opacity', 1).fadeOut(1000); //the piece dissappear. ui.draggable.css({opacity: 0, cursor: 'default'}).draggable('disable'); if ($('.snappuzzle-piece.correct.'+puzzle_class).length == o.rows*o.columns) o.onComplete(that); }

captura de pantalla 2017-03-13 a las 12 29 40 p m

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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