8000 All cells changes visible radius when drop animation running · Issue #4 · kenrick95/c4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
All cells changes visible radius when drop animation running #4
Closed
@ArtemKolodko

Description

@ArtemKolodko

It can be solved, just replace draw in function animate:

if (to_row * this.circleRadius >= cur_pos) {
            this.clear();
            //this.draw(); current call position
            this.drawCircle(this.circleRadius * column + 50, cur_pos + 50, 25, fg_color, "black");
            this.drawMask();
            this.draw(); // call draw() there to solve radius changing
            window.requestAnimationFrame(function () {
                that.animate(column, move, to_row, cur_pos + 25, callback);
            });
        } else {
            callback();
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0