We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
<ko-stage #stage [config]="configStage"> <ko-layer #layer [config]="configLayer"> </ko-layer> </ko-stage> this.stage.getStage().addEventListener( 'touchstart mousedown', (evt) => {
The text was updated successfully, but these errors were encountered:
Well, I had to remove the previous time listener before every redraw. this.stage.getStage().removeEventListener('mousedown mouseup');
Sorry, something went wrong.
@RangerGuan Why you use native event? ng2-konva have angular events - use it (http://rafaelescala.com/ng2-konva/#event)
Since the last update, the mouseup event on ko-stage trigger 2 times :
mouseup
ko-stage
<div #koContainer class="ko-container" [ngStyle]="{ cursor: planState.cursor }"> <ko-stage *ngIf="configStage" #stage [config]="configStage" (mousedown)="handStart()" (mousemove)="handMove()" (mouseup)="handEnd()" (touchmove)="handMove()" (touchstart)="handStart()" (wheel)="wheelStart($event)" > <ko-layer #layer /> </ko-stage> </div>
I confirm that the events are all called twice :
• Object { angularComponent: {…}, event: {…} } • mousedown { target: canvas, buttons: 1, clientX: 1357, clientY: 269, layerX: 1324, layerY: 236 }
No branches or pull requests
The text was updated successfully, but these errors were encountered: