Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, January 9, 2018 11:57:31 AM(UTC)

aida  
aida

Groups: Registered
Posts: 9


On the Styles Demo the mouse location label is not working on an ipad.
Is this a bug in Leadtools or an incorrect event in jquery?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, January 11, 2018 10:41:26 AM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

Hello,

When you say the label "is not working", what exactly do you mean?

I tested this here on an iPad Mini, and observed the mouse location to be reported as unknown. Given that there is no mouse on a touch enabled device, this would seem appropriate.

What are you expecting the label to display? Also, are you having a similar issue in your own application that you are trying to better understand? If so, can you explain the issue you are having with your application in greater detail?
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Thursday, January 11, 2018 4:30:41 PM(UTC)

aida  
aida

Groups: Registered
Posts: 9


Thanks for rely.
I mean as you observe, mouse location unknown.

Yes I am having the same problem in my application, it works fine on a desktop but not the iPad.
I want the label to display the x,y coordinates of the pixel in an image.

I have tried it with the code from the example folder but added click, mouseclick and tap events to the line
$(this._imageViewer.eventCanvas ? this._imageViewer.eventCanvas : this._imageViewer.foreCanvas).mousemove(function (e) {
When I add a 'click' event to another element the event is raised on the iPad.

Currently trying to get a mac running so can run a debugger on the iPad to see what is going.
Was wondering if the control was handling the events and not passing them on.

Thanks

 
#4 Posted : Friday, January 12, 2018 9:36:02 AM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

The mousemove event you are subscribing to (as illustrated by our ImageViewerStyles demo) is native to the HTML5 Canvas. This event is specific to the mouse, so it won't work on an iPad.

I would recommend using the InteractiveService object to subscribe to the tap and perhaps the dragStarted events for use on both desktop and the iPad also. You can get access to these through the imageViewer.interactiveService property. With this event, you can use the InteractiveEventArgs.Position to update where the user is using the mouse or their finger.

For a working example of how to use this service, you can check out the JS Annotations demo.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#5 Posted : Wednesday, January 17, 2018 10:37:20 AM(UTC)

aida  
aida

Groups: Registered
Posts: 9


Thanks Walter, that works.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.069 seconds.