clementfarabet / gfx.js

A graphics backend for the browser (with a Torch7 client).
MIT License
125 stars 35 forks source link

refreshing window problem #20

Closed volkov68 closed 10 years ago

volkov68 commented 10 years ago

hi guys, when i'm using something like : win1=gfx.image(img1, {win=win1, zoom=2,legend="r"}) -- the first time it's work fine = show a window with the image

wait 2sec

win1=gfx.image(img2, {win=win1, zoom=2,legend="r"}) -- the second time it keep showing the first image (img1), but when i click the image, new tab is opened and display correctly the img2

any idea?!! thx

soumith commented 10 years ago

Hey, which browser are you using?

volkov68 commented 10 years ago

Hi Soumith, i'm using google chrome (ubuntu 14.04)

volkov68 commented 10 years ago

another thing when the img is a tensor with more than one dimension (ex: img=torch.Tensor(10,100,100)) there's no problem, the listener works fine.

soumith commented 10 years ago

a little late, but this PR fixes the issue: https://github.com/clementfarabet/gfx.js/pull/30

volkov68 commented 10 years ago

Thanks Soumith, your'e the best.