GGEditor
GGEditor copied to clipboard
Safari、FireFox浏览器存在bug
版本
ggeditor 2.0.3、2.0.4
请检查问题是否存在于最新版本中 是
环境
系统、浏览器、React 等版本信息 mac 10.11.5 Safari 9.1.1
重现链接
Safari: 用Safari打开gg的demo http://ggeditor.com/demo/#/mind
FireFox: http://ggeditor.com/demo/#/mind 能打开,但是不能滚动,滚动会报 'n is null'的错误
清晰的重现步骤以便迅速定位问题
期望的结果是什么
兼容Safari、FireFox
实际的结果是什么
Safari打不开,FireFox不能滚动
@flajf
//贫道也是遇到了同样的问题 //不知施主是否已解决
//若已解决 //还请施主授教与贫道
//贫道甚是感激 //贫道邮箱:[email protected]
@kunkeji 贫僧已解决此问题,举起吾屠龙宝刀,一刀将GG切之
洒家早已解决
---原始邮件--- 发件人: "flajf"<[email protected]> 发送时间: 2019年11月2日(星期六) 晚上11:20 收件人: "alibaba/GGEditor"<[email protected]>; 抄送: "Mention"<[email protected]>;"kunkeji"<[email protected]>; 主题: Re: [alibaba/GGEditor] Safari、FireFox浏览器存在bug (#319)
@kunkeji 贫僧已解决此问题, 举起吾屠龙宝刀,一刀将GG切之
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
大佬,这个问题最后怎么解决的,求教
我忘了 我改了他的依赖文件
------------------ 原始邮件 ------------------ 发件人: "廖硕评"<[email protected]>; 发送时间: 2020年5月21日(星期四) 下午4:12 收件人: "alibaba/GGEditor"<[email protected]>; 抄送: "鲲科技"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [alibaba/GGEditor] Safari、FireFox浏览器存在bug (#319)
大佬,这个问题最后怎么解决的,求教
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
这个问题你们是怎么解决的啊

还是不行啊

重启项目才生效
重启项目才生效
重启了项目,也清空了缓存,还是不行(o^^o)
那就不知道了,我的是改了这里就ok了,但有时候代码会被还原没改之前的
那就不知道了,我的是改了这里就ok了,但有时候代码会被还原没改之前的 好吧,我再看看,谢谢
修改 gg-editor dist/bundke.js、dist/bundle.js.map 源码: 修改 gg-editor 引用的包 gg-editor-core,gg-editor-core/dist/bundke.js 源码:
- a.wheelDelta 用 a.wheelDelta || (a.detail * 40) 替换,兼容火狐
- a.wheelDeltaX 用 (a.wheelDeltaX || (-a.deltaX * 40)) 替换,兼容火狐
- a.wheelDeltaY 用 (a.wheelDeltaY || (-a.deltaY * 40)) 替换,兼容火狐
这样应该可以了;先前我的gg-editor是提取处理后放到项目里,不是引用npm的包
修改 gg-editor dist/bundke.js、dist/bundle.js.map 源码: 修改 gg-editor 引用的包 gg-editor-core,gg-editor-core/dist/bundke.js 源码:
- a.wheelDelta 用 a.wheelDelta || (a.detail * 40) 替换,兼容火狐
- a.wheelDeltaX 用 (a.wheelDeltaX || (-a.deltaX * 40)) 替换,兼容火狐
- a.wheelDeltaY 用 (a.wheelDeltaY || (-a.deltaY * 40)) 替换,兼容火狐
这样应该可以了;先前我的gg-editor是提取处理后放到项目里,不是引用npm的包
@lkmlq 针对2.x的版本,发了一个gg-editor2的包。
npm install gg-editor2 --dev-save
# or
yarn add gg-editor2 --save