Deutsch   English   Français   Italiano  
<vouuvb$128vv$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Harald Oehlmann <wortkarg3@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: Mouse wheel events apparently not working in canvas on macOS with
 Tk 9.0.1
Date: Mon, 17 Feb 2025 10:19:41 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <vouuvb$128vv$1@dont-email.me>
References: <vouu20$12rik$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Feb 2025 10:19:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b371355f478f515f3ad0139480e9c3d3";
	logging-data="1123327"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18cpxC4kHQLe74cUWDZFsR4"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:lWsIBqY8slyoEgxSIcnV7yJ/Q+o=
Content-Language: en-GB
In-Reply-To: <vouu20$12rik$1@dont-email.me>
Bytes: 2806

Hi Eric,
the MouseWheel stuff had multiple changes with 9.0:
- unification over platforms: 
https://core.tcl-lang.org/tips/doc/trunk/tip/474.md
- the widget below the mouse receives it, not the focus widget.
- two-finger scroll does not generate mousewheel: 
https://core.tcl-lang.org/tips/doc/trunk/tip/684.md

If you find any news, please consider to contribute to the

https://core.tcl-lang.org/tk/wiki?name=Migrating+scripts+to+Tk+9&p

I have no MacOS, but maybe, this is helpful.
If anything does not work after those hints, consider to file a bug 
report, as many core-close people dont look here.

Take care,
Harald

Am 17.02.2025 um 10:04 schrieb Eric Brunel:
> Hello all,
> 
> I'm seeing a weird issue with tcl/tk 9.0.1 on macOS: if I create a canvas
> and bind mouse wheel events on it, it doesn't seem to receive them. Here
> is a tiny script showing the problem:
> 
> canvas .cnv
> pack .cnv -fill both -expand yes
> bind .cnv <MouseWheel> { puts "." }
> 
> If I run that with tcl/tk 8.6.16 compiled from source on my mac mini (M1
> chip, macOS Ventura 13.2.1), it works as expected, the mouse wheel events
> are received and the "." are printed. If I do the same with tcl/tk 9.0.1,
> again compiled from source on the same machine, it doesn't work: no "." is
> printed.
> 
> I tried with tcl/tk 9.0.1 also compiled from the source code on Windows
> and even Linux, and the same script works as expected: the mouse wheel
> events are received and the "." are printed. The only platform where it
> doesn't work is macOS.
> 
> This looks like quite a big problem, so I'd be surprised if it had been
> missed. Can anyone confirm what I'm seeing here? Is there an issue with my
> installation?
> 
> Thanks!