Sie sind nicht angemeldet.

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

1

Montag, 14. Oktober 2013, 17:59

layer follows mouse

hello try a layer follow when moving the mouse over a hotspot is this possible?

thanks
beste regards

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Montag, 14. Oktober 2013, 20:24

onmouseover drag layer.
See the examples folder / xml-usage / dragable hotspots.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

3

Montag, 14. Oktober 2013, 20:26

Play with the "dragable layers/plugins" example from the Krpano download package. Anyway it must be modified to your needs. By the way, how is the layer dragged in your scheme? The hotspots stays still and the layer follows mouse or should hotspot and layer both move?
Regards,

Alexey

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

4

Montag, 14. Oktober 2013, 21:14

the hotspot fixed and layer follow mouse.

tonesh

Schüler

Beiträge: 75

Wohnort: Rome

Beruf: Photographer

  • Nachricht senden

5

Montag, 14. Oktober 2013, 23:41

maybe an action like this, triggered by the hotspot "onhover"

Quellcode

1
2
3
4
<action name="mouse_link">
   set(layer[my_layer].x, get(mouse.x));
   set(layer[my_layer].y, get(mouse.y));
</action>
or you can use "tween" instead of "set"

toni

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

6

Dienstag, 15. Oktober 2013, 00:35

tonesh thank you very much, this is what I'm trying but the problem is that if the screen is resized, the position of the layer in improper

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

7

Dienstag, 15. Oktober 2013, 00:49

Then do bounds checking event.onresize
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

8

Dienstag, 15. Oktober 2013, 01:43

sorry I do not understand!!!!

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

9

Dienstag, 15. Oktober 2013, 05:55

When the screen is resized check the window position to see if it is wrong and fix it.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

10

Dienstag, 15. Oktober 2013, 13:34

hello thanks for being attentive, but do not really understand the point
Might be more specific or give some example to understand better what you mean?
thanks
regards

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

11

Dienstag, 15. Oktober 2013, 20:42

http://www.seeit360.com/opera

The description window is dragable and responsive to the window resize.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

danimorgo

Anfänger

  • »danimorgo« ist der Autor dieses Themas

Beiträge: 42

Wohnort: argentina

Beruf: diseñador

  • Nachricht senden

12

Dienstag, 15. Oktober 2013, 21:41

hooo ok but that's not what I want to do, try being on a hot spot one layer follow the mouse