Giter Site home page Giter Site logo

music's People

Contributors

vivian-xu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

music's Issues

鼠标按下与弹起事件处理

加入音频播放以后,如果长按,能够连续播放声音么?怎么播放,会不会奇怪。
键盘操作,是否也需要 keydown 与 keyup 分别监听

连续点击的最小时间间隔

按键完全弹起之前, 用户再次点击, 如何响应.

用户点击后, 延迟 300 ms 弹起按键. 期间可能发生点击行为.

UI 设计稿

关键参数:

  1. 4 个颜色值。黑白键,按下和弹起时
  2. 4 个宽度尺寸。白键键宽、键间距、两边空白。黑键键宽。
  3. 2 个高度尺寸。黑白键的长度

移动端touchend特定情况下不生效

两根指头,分别是 A 和 B ,A 在钢琴键上触发 touchstart 事件 ,并且按着不放 , 这时 B 在其他地方触发touchstart 事件 ,并且按着不放 , 然后 A 先松指头 ,A 不触发 touchend 事件 。
并且 , 如果 B 指头触发的其他地方是另一个钢琴键,并以某种速度触发, 则 B 也不触发 touchend 事件。

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.