Unexpected zoom in Safari

50 views
Skip to first unread message

Chuck Roesel

unread,
Jul 27, 2012, 3:41:36 PM7/27/12
to ican...@googlegroups.com
I'm using icanplot in my web application and I've found a problem specific to the Safari browser running on MacOSX. When I move my mouse over the graph, it zooms in to the top left corner. None of the unzoom options (command+0, etc.) will unzoom it. 

I checked the icanplot dynamic demo and the zoom happens on click and I can't find a way to unzoom. This doesn't happen on any other browser, even Safari on Windows. Any ideas what might be happening? I would appreciate any advice.

Thanks,
Chuck Roesel

Chuck Roesel

unread,
Jul 27, 2012, 4:46:40 PM7/27/12
to ican...@googlegroups.com
I think I've got a fix for this. I made the following change to the redraw function and it seems to be working. I'm going to do more testing across browsers to make sure it still works everywhere else.

    redraw: function() {
        this.clear();
        this.ctx.drawImage(this.img, 0, 0, this.width, this.height);
    },

Amit Utkarsh

unread,
Jul 27, 2012, 5:30:53 PM7/27/12
to ican...@googlegroups.com
Thanks Chuck, 

Once you confirm the behavior in other browsers, I can update the code.

Amit
Reply all
Reply to author
Forward
0 new messages