Jump to content

Mouse coordinates in FrontEnd:OnMouseMove

  • Pending

Take a look the following example:

function FrontEnd:OnMouseMove(x,y)
	if global_error_widget ~= nil or self:GetFadeLevel() > 0 then
		return false

	if self.lastx and self.lasty and self.lastx ~= x and self.lasty ~= y then
		self.tracking_mouse = true

	self.lastx = x
	self.lasty = y

Don't you think, there should be "and (self.lastx ~= x or self.lasty ~= y)"?

It looks, like current implementation ignores straight mouse moves (i.e. when lastx is not equal to x AND y stays the same, or vice versa).


Steps to Reproduce

User Feedback

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...