• 移动端FastClick和editor冲突问题。


        FastClick.prototype.needsClickForParent = function (target) {
            let parent = target.parentNode;
            if (parent == null) {
                return false;
            }
            let b = (/needsclick/).test(parent.className)
            if (!b) {
                return this.needsClickForParent(parent);
            } else {
                return true;
            }
        }
     
        FastClick.prototype.needsClick = function (target) {
            if (this.needsClickForParent(target) === true) {
                return true;
            }
            switch (target.nodeName.toLowerCase()) {

                // Don't send a synthetic click to disabled inputs (issue #62)
                case 'button':
                case 'select':
                case 'textarea':
                    if (target.disabled) {
                        return true;
                    }

                    break;
                case 'input':

                    // File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
                    if ((deviceIsIOS && target.type === 'file') || target.disabled) {
                        return true;
                    }

                    break;
                case 'label':
                case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
                case 'video':
                    return true;
            }

            return (/needsclick/).test(target.className);
        };
  • 相关阅读:
    TypeError: Buffer.alloc is not a function
    node.js服务端程序在Linux上持久运行
    C#中的反射
    群要事日记
    vs2017 自定义生成规则 错误 MSB3721 命令 ”已退出,返回代码为 1。
    VP9 Video Codec
    用户手册是Yasm汇编
    更改Mysql数据库存储位置
    注册表项
    C#开发可以可视化操作的windows服务
  • 原文地址:https://www.cnblogs.com/qing123/p/8708125.html
Copyright © 2020-2023  润新知