membrane 2022-03-07

Hi, is textarea editing working in webgl? I have (I think) identical code which is working in java but not in webgl

This should work. I have noticed that you sometimes have to do a clean before compiling or watching when targeting javascript. Are you getting an error or how does the issue manifest?

it just doesn't do anything, text appears but cannot be modified. Same code works with java I think. I know that the webgl side is slightly less built out so just thought I'd check before I dug in

I'm using latest version but wasn't working on an old one either, it's working your side?

yea, it's working for me. how are you building it?

actually, I didn't test that specific snippet, but textareas do work in my test setup

ok, I just tested the following snippet without issue:

(defonce canvas-info (webgl/run
             
                         (membrane.component/make-app #'membrane.basic-components/textarea (atom {:text "yo"}))
                         {:container canvas}))

shadow-cljs watch

I'll nuke the shadow-cljs cache I guess

thanks for testing, sorry for asking

baffled how the same code's working for you

so the textarea is appearing, but just not responding to mouse clicks and text input?

the mouse clicks move the highlighted area but delete and keys don't do anything

I'll take a look tomorrow, I just mocked out my workflow for now. It should be reasonably easy to work out what's happening given the unidirectional data flow I just thought I'd check first

as slightly short of time

Sorry I can't be more helpful. I'm also pretty busy this week. I should be more open next week.

(membrane.webgl/run ;; runnable (component/make-app #'basic/textarea (atom {:text "yo"})) {:container (get-canvas)})