Comments (5)
The event listener works using JavaScript but not in JSX.
componentDidLoad(){
this.containerElement.addEventListener("touchmove", (e:TouchEvent) => {
this.onContainerTouchMove(e);
})
this.containerElement.addEventListener("touchend", () => {
this.previousDistance = undefined;
})
}
from stencil.
Hey @xulihang 👋
While I think I have an idea as to what's going on here, the reproduction case is a bit too large for us to use here. Can you please create a minimal code reproduction sample for the team to pull down? Ideally, this should be a Stencil Component Starter project (npm init stencil@latest component
) with any changes applied to it to demonstrate the issue. This helps the speed of triaging issues immensely, and would be greatly appreciated. To move forward with this, please let me know when you've updated the reproduction case.
Thanks!
from stencil.
Thanks for the issue! This issue has been labeled as needs reproduction
. This label is added to issues that need a code reproduction.
Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
from stencil.
a minimal code reproduction sample
I've made a minimal sample here: https://github.com/xulihang/stencil-touchevent-test
from stencil.
Thanks! I've verified something here isn't working as expected, and have ingested this into our backlog for someone to take a look!
from stencil.
Related Issues (20)
- bug: jeep-sqlite broken by version 4.12.2 HOT 3
- [Tracking] WebdriverIO Migration HOT 2
- bug: `emulate.userAgent` is not used in E2E Screenshot tests HOT 1
- feat: create a 'web-types' doc output target HOT 1
- feat: formAssociated element should treat boolean "disabled" Prop differently HOT 5
- bug: stencil build throws errors from node_modules HOT 4
- bug: hydrate app | unhandledRejection TypeError: Cannot read properties of undefined (reading 'nextTick') HOT 5
- bug: stencil build causes copyfile error and creates extra directory in monorepo HOT 2
- bug: Unable to run Angular test app outside monorepo and import Stencil component successfully HOT 11
- bug: Stencil Components: Nested Slots insert new children before last child if children components are added dynamically at run time. HOT 2
- bug: Nonce not being added to styles HOT 1
- bug: Boolean property not removing corresponding attribute when set to false programmatically HOT 5
- feat: Allow to specify in CustomOuputTarget if the output have to be re-executed on each build HOT 4
- bug: v4.12.2 breaks E2E tests HOT 4
- feat: node.eventListeners/getEventListeners(node) alternative to conditionally render internal elements, when an @Event has listeners. HOT 2
- bug: `emulate.viewport` crops the screenshot in E2E Screenshot tests HOT 1
- bug: Copy task runs in parallel to build tasks creating a race condition HOT 5
- bug: instance is undefined when consuming dist-custom-elements bundle HOT 4
- bug: SCSS doesn't rebuild when path is outside stencil directory HOT 8
- feat: Support providing custom TypeScript transformers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stencil.