Giter VIP home page Giter VIP logo

Comments (5)

xulihang avatar xulihang commented on May 27, 2024

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.

rwaskiewicz avatar rwaskiewicz commented on May 27, 2024

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.

ionitron-bot avatar ionitron-bot commented on May 27, 2024

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.

xulihang avatar xulihang commented on May 27, 2024

a minimal code reproduction sample

I've made a minimal sample here: https://github.com/xulihang/stencil-touchevent-test

from stencil.

rwaskiewicz avatar rwaskiewicz commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.