Tk Source Code

Check-in [77baa1f7]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | bug-609e0045f5
Files: files | file ages | folders
SHA3-256: 77baa1f7a496aaac2ffebac3045c71cd5656f58abbf46c929e7cd2de5195bfab
User & Date: fvogel 2019-03-14 20:59:55
Context
2019-03-14
21:01
Fix [609e0045f5]: MouseWheel binding for canvas on MacOS provides wrong values for %x %y check-in: d0405802 user: fvogel tags: core-8-6-branch
20:59
Fix typo Closed-Leaf check-in: 77baa1f7 user: fvogel tags: bug-609e0045f5
2019-03-04
23:30
Fix bug [609e0045f5]: Aqua scrollwheel events have incorrect mouse coordinates. check-in: cb6302a6 user: culler tags: bug-609e0045f5
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to macosx/tkMacOSXMouseEvent.c.

116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
	global = [eventWindow tkConvertPointToScreen: local];
	local.y = [eventWindow frame].size.height - local.y;
	global.y = tkMacOSXZeroScreenHeight - global.y;

    } else {

	/*
	 * As a last resort, with no NSWindow to work witn, set both local and
	 * global to the screen coordinates.
	 */

	local.y = tkMacOSXZeroScreenHeight - local.y;
	global = local;
    }







|







116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
	global = [eventWindow tkConvertPointToScreen: local];
	local.y = [eventWindow frame].size.height - local.y;
	global.y = tkMacOSXZeroScreenHeight - global.y;

    } else {

	/*
	 * As a last resort, with no NSWindow to work with, set both local and
	 * global to the screen coordinates.
	 */

	local.y = tkMacOSXZeroScreenHeight - local.y;
	global = local;
    }