Corrigé l'offse de scroll
This commit is contained in:
		| @@ -37,8 +37,8 @@ public class CanvasService { | ||||
|             JObject? offsets = (JObject?)JsonConvert.DeserializeObject(data); | ||||
|  | ||||
|             if (offsets is not null && offsets.HasValues) { // Translation entre le canvas et la souris. | ||||
|                 mouseX = eventArgs.ClientX - offsets.Value<double>("offsetLeft"); | ||||
|                 mouseY = eventArgs.ClientY - offsets.Value<double>("offsetTop"); | ||||
|                 mouseX = eventArgs.PageX - offsets.Value<double>("offsetLeft"); | ||||
|                 mouseY = eventArgs.PageY - offsets.Value<double>("offsetTop"); | ||||
|             } | ||||
|             if (_currentCanvasContext is null) | ||||
|                 _currentCanvasContext = await myCanvas.CreateCanvas2DAsync(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user