-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
想要实现用滚轮事件修改时间精准度 有什么方法吗 #81
Comments
修改源码或手动把wheel 事件绑定到时间轴上 |
可以留个联系方式讨论一下吗。。 |
需要当面请教
…------------------ 原始邮件 ------------------
发件人: "w1301625107/Vue-Gantt-chart" ***@***.***>;
发送时间: 2021年10月20日(星期三) 晚上10:16
***@***.***>;
***@***.******@***.***>;
主题: Re: [w1301625107/Vue-Gantt-chart] 想要实现用滚轮事件修改时间精准度 有什么方法吗 (Issue #81)
修改源码或手动把wheel 事件绑定到时间轴上
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
em,时间轴.addEventlistener('wheel',function(e){对e. deltaY处理一下转化成scale 这个prop 的变化就可以了} |
this.$refs.headerTimeline.addEventListener('wheel',function(e){
// 对e. deltaY处理一下转化成scale 这个prop 的变化就可以了
console.log("e1", e.deltaY);
if(e.deltaY>0)
{
this.scale=this.scale+this.scale;
//这里我判断deltaY正负值 来改变scale的值 好像这个scale值是 error Unexpected mutation of "scale" prop vue/no-mutating-props
}
});
this.timer = setTimeout(()=>{ //设置延迟执行
},1000);
},
…------------------ 原始邮件 ------------------
发件人: "w1301625107/Vue-Gantt-chart" ***@***.***>;
发送时间: 2021年10月21日(星期四) 中午11:02
***@***.***>;
***@***.******@***.***>;
主题: Re: [w1301625107/Vue-Gantt-chart] 想要实现用滚轮事件修改时间精准度 有什么方法吗 (Issue #81)
em,时间轴.addEventlistener('wheel',function(e){对e. deltaY处理一下转化成scale 这个prop 的变化就可以了}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
我发个的这种方法不是改源代码的,你这个是ref 进去改了吗?组件外面改就可以了 |
谢谢指导,效果已经出来了
…------------------ 原始邮件 ------------------
发件人: "w1301625107/Vue-Gantt-chart" ***@***.***>;
发送时间: 2021年10月21日(星期四) 中午12:17
***@***.***>;
***@***.******@***.***>;
主题: Re: [w1301625107/Vue-Gantt-chart] 想要实现用滚轮事件修改时间精准度 有什么方法吗 (Issue #81)
我发个的这种方法不是改源代码的,你这个是ref 进去改了吗?组件外面改就可以了
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: