{"action":"closed","issue":{"url":"https://api.github.com/repos/caleb531/jcanvas/issues/252","repository_url":"https://api.github.com/repos/caleb531/jcanvas","labels_url":"https://api.github.com/repos/caleb531/jcanvas/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/caleb531/jcanvas/issues/252/comments","events_url":"https://api.github.com/repos/caleb531/jcanvas/issues/252/events","html_url":"https://github.com/caleb531/jcanvas/issues/252","id":171618845,"number":252,"title":"Text Tooltip on mouseover","user":{"login":"mlz1055","id":21078660,"avatar_url":"https://avatars.githubusercontent.com/u/21078660?v=3","gravatar_id":"","url":"https://api.github.com/users/mlz1055","html_url":"https://github.com/mlz1055","followers_url":"https://api.github.com/users/mlz1055/followers","following_url":"https://api.github.com/users/mlz1055/following{/other_user}","gists_url":"https://api.github.com/users/mlz1055/gists{/gist_id}","starred_url":"https://api.github.com/users/mlz1055/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlz1055/subscriptions","organizations_url":"https://api.github.com/users/mlz1055/orgs","repos_url":"https://api.github.com/users/mlz1055/repos","events_url":"https://api.github.com/users/mlz1055/events{/privacy}","received_events_url":"https://api.github.com/users/mlz1055/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caleb531/jcanvas/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-17T09:56:34Z","updated_at":"2016-08-17T23:35:21Z","closed_at":"2016-08-17T23:35:21Z","body":"Hi,\r\nWith below code the text appears only when the mouse just crosses the rectangle boundaries. I would expect that the text remains all the time the mouse is hovering the rectangle. Maybe my code is not the correct way to build a tooltip?\r\n\r\nCode:\r\n// Draw a green rectangle\r\n$('canvas').drawRect({\r\n  layer: true,\r\n  fillStyle: '#6c0',\r\n  x: 100, y: 100,\r\n  width: 100, height: 80,\r\n  mouseover: function(layer) {\r\n    // code to run when square is hovered\r\n\t$('canvas').drawText({\r\n\t  fillStyle: '#9cf',\r\n\t  strokeStyle: '#25a',\r\n\t  strokeWidth: 1,\r\n\t  x: 50, y: 50,\r\n\t  fontSize: 10,\r\n\t  fontFamily: 'Verdana, sans-serif',\r\n\t  text: 'Hello'\r\n\t});\r\n  }\r\n});"}}
{"actor":{"display_login":"caleb531"}}