Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
I have a problem with [object:over — fired when mouse is over object]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vũ Nguyễn Hoàng  
View profile  
 More options May 14 2012, 5:23 am
From: Vũ Nguyễn Hoàng <vuctg...@gmail.com>
Date: Mon, 14 May 2012 02:23:56 -0700 (PDT)
Local: Mon, May 14 2012 5:23 am
Subject: I have a problem with [object:over — fired when mouse is over object]

My code is:

var canvas = new fabric.Canvas('any_id");

> canvas.observe({
>     'object:over': onObjectOver
> });  

canvas.add(new fabric.Rect({

> width: 50,
> height: 50,
> left: 50,
> top: 150,
> fill: 'none',
> stroke: '#666',
> angle: 40
}));

function onObjectOver(e){

> var p = e.memo.target;
> console.log(e);
> }

But when I moved mouse over on any objects of this canvas and nothing is
logged?
Did I have any problem in my code and can you give me how to use this event?

Thanks,
Vu Nguyen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juriy Zaytsev  
View profile  
 More options May 15 2012, 6:51 am
From: Juriy Zaytsev <kan...@gmail.com>
Date: Tue, 15 May 2012 14:51:48 +0400
Local: Tues, May 15 2012 6:51 am
Subject: Re: I have a problem with [object:over — fired when mouse is over object]

There is no "object:over" event in fabric :) There's an example of how to
implement non-standard "object:over" here though —
http://fabricjs.com/hovering

--
kangax

On Mon, May 14, 2012 at 1:23 PM, Vũ Nguyễn Hoàng <vuctg...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »