Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
fix(praparat): click event does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
itigoore01 committed Oct 8, 2019
1 parent 41fb010 commit 7641549
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions projects/praparat/src/lib/praparat.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:host {
position: relative;
display: block;
touch-action: none;
width: 100%;
height: 100%;
}
Expand Down
5 changes: 0 additions & 5 deletions projects/praparat/src/lib/praparat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export class PraparatComponent implements OnDestroy, AfterViewInit {
this.removeListeners.push(
this.renderer.listen(this.elementRef.nativeElement, 'wheel', (event: WheelEvent) => {
event.preventDefault();
event.stopPropagation();
this.cancelAnimation();

const {
Expand All @@ -149,8 +148,6 @@ export class PraparatComponent implements OnDestroy, AfterViewInit {
// タッチでのパン&ズーム
this.removeListeners.push(
this.renderer.listen(this.elementRef.nativeElement, 'touchstart', (event: TouchEvent) => {
event.preventDefault();
event.stopPropagation();
this.cancelAnimation();

const touches: Point[] = this.touchListToPoints(event.touches);
Expand Down Expand Up @@ -181,8 +178,6 @@ export class PraparatComponent implements OnDestroy, AfterViewInit {

this.removeListeners.push(
this.renderer.listen(this.elementRef.nativeElement, 'mousedown', (downEvent: MouseEvent) => {
downEvent.preventDefault();
downEvent.stopPropagation();
this.cancelAnimation();

this.model.touchStart([{
Expand Down

0 comments on commit 7641549

Please sign in to comment.