• 请不要在回答技术问题时复制粘贴 AI 生成的内容
gangsta
V2EX  ›  程序员

Web 中模拟 iOS 的鼠标长按后抖动删除是怎么实现的呢?

  •  
  •   gangsta · Apr 14, 2014 · 2612 views
    This topic created in 4439 days ago, the information mentioned may be changed or developed.
    在孬爷爷的perber(www.perber.com)中看到这个效果,觉得不错,打算加到自己的一个小项目中.
    在perber的Github[https://github.com/naoyeye/Perber/]目录里找了一圈,没找到...
    Supplement 1  ·  Apr 14, 2014
    4 replies    1970-01-01 08:00:00 +08:00
    loading
        1
    loading  
       Apr 14, 2014 via iPhone
    key word:css shake
    gangsta
        2
    gangsta  
    OP
       Apr 14, 2014
    @loading JavaScript/jQuery支持鼠标长按事件吗?
    loading
        3
    loading  
       Apr 14, 2014 via iPhone
    mousedown开始计时,我没测试过
    Sivan
        4
    Sivan  
       Apr 14, 2014
    写个定时器在 mousedown 时间上,然后加个 css shake class。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1630 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:44 · PVG 00:44 · LAX 09:44 · JFK 12:44
    ♥ Do have faith in what you're doing.