Started clicking action
parent
07baa6d8bd
commit
d196386d3c
|
@ -4,5 +4,19 @@ export class CanvasHandler {
|
||||||
|
|
||||||
constructor(currentImageDiv: HTMLElement) {
|
constructor(currentImageDiv: HTMLElement) {
|
||||||
this.currentImageDiv = currentImageDiv;
|
this.currentImageDiv = currentImageDiv;
|
||||||
|
this.currentImageDiv.addEventListener('onmousedown', this.clickOnImage);
|
||||||
|
this.currentImageDiv.addEventListener('onmouseover', this.hoverOverImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public Load() {
|
||||||
|
// this.currentImageDiv.addEventListener('onmousedown', this.clickOnImage);
|
||||||
|
// }
|
||||||
|
|
||||||
|
private hoverOverImage() {
|
||||||
|
console.log('hovering over image');
|
||||||
|
}
|
||||||
|
|
||||||
|
private clickOnImage = (e: Event) => {
|
||||||
|
console.log('Clicked on image');
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ export class Page {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.canvasHandler = new CanvasHandler(document.getElementById('currentImage') as HTMLElement);
|
this.canvasHandler = new CanvasHandler(document.getElementById('currentImage') as HTMLElement);
|
||||||
|
// this.canvasHandler.currentImageDiv.addEventListener('onmousedown', ClickOnCanvas);
|
||||||
|
|
||||||
this.frameHandler = new FrameHandler(
|
this.frameHandler = new FrameHandler(
|
||||||
document.getElementById('currentImage') as HTMLElement,
|
document.getElementById('currentImage') as HTMLElement,
|
||||||
|
|
Loading…
Reference in New Issue