Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
281 views
in Technique[技术] by (71.8m points)

gridster - Why Cant I Use TouchStart In My Angular 11 App?

Ok so I am using Gridster and I am trying to use touchstart for a button in my Angular 11 app. In the gridster example the code looks very similar to what I am using in my app.

 <button mat-icon-button mat-raised-button class="remove-button" (mousedown)="removeItem($event, item)" (touchstart)="removeItem($event, item)">

However I am getting the following error in WebStorm

Event touchstart is not emitted by any applicable directives nor by button element

Does anyone know the reason this may be happening? I looked through the gridster repo and it doesn't look like anything special was included, but I could be missing it. The repo is located here for reference

https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/rtl


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
...