How to disable pointerlock in aframe-extras? - aframe

I'm using #donmccurdy's checkpoint controls for movement in an aframe build. How can I disable the pointerlock from the script?

Solved it:
Add mouse-controls="pointerlockEnabled: false" to the a-camera tag

Related

Change not-allowed cursor on drag in React

When I drag an image in react that has draggable set to true, I get not-allowed / no-drop cursor. I can't figure out how to target it with CSS to overwrite. The way I handle the drag is onDragStart then onDragEnd.
Without some reproducable code i just can try a shot in the dark: You have to call at the beginning of your drag handler e.preventDefault();.
I faced the same issue back when I was working on one of my React projects, so I did some research and tested several methods that I found, but nothing worked for me. You see there is a property named DataTransfer.effectAllowed that specifies the effect that is allowed for drag operation, and there is a limitation to this API as you can read here -
https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed
Changing the styles or attaching an eventListener won't work, you have to use a different backend for this. Use react-dnd and react-dnd-touch-backend or react-dnd-html5-backend npm packages as a custom backend.
https://www.npmjs.com/package/react-dnd
https://www.npmjs.com/package/react-dnd-touch-backend
https://www.npmjs.com/package/react-dnd-html5-backend

How to setFocus on Apache Royale Jewel Button?

All is in the title...
I would like to trigger at application startup this definition in css :
.jewel.button:focus
But I don't see any setFocus or focus property on j:Button
Could you tell me how to do ? Thanks
Regards
UPDATE: This is no longer right. Recently SetFocus bead was removed and StyledUIBase got "setFocus" method. Use it instead of the code below.
Use the Basic bead SetFocusrecenlty added:
<j:Button text="Hello!" emphasis="secondary">
<j:beads>
<js:SetFocus enableFocus="true"/>
</j:beads>
</j:Button>

Can't set custom startButtons and endButtons properties for super-hands reaction components

I'm attempting to utilise other button mappings for super-hands other than the defaults but I'm hitting trouble. For example, the abuttonup and abuttondown events for the Oculus Touch with progressive-controls.
When I use the following component, or any of the other reaction components, the grab-end or click events are not registering for custom button mappings.
clickable="startButtons: abuttonup; endButtons: abuttondown"
When I override the default startButtons and endButtons in the super-hands source, the buttons work as intended.
Many thanks.
The mappings I required have now been added to the aframe-super-hands library: Commit 95a3222

KendoUI: exact time rendering in scheduler

I know that RadScheduler (also Telerik) has an option 'Exact time rendering' (http://demos.telerik.com/aspnet-ajax/scheduler/examples/exacttimerendering/defaultcs.aspx) but does this also exist in KendoUI Scheduler ?
Have been searching the documentation but was unable to find anything.
This feature is called snap in the Kendo UI Scheduler. Here is a live demo: http://demos.telerik.com/kendo-ui/web/scheduler/move-resize.html (try unchecking the checkbox)

Highstock - zoom all by function

I am using Highstock. Is there any possibility to execute the zoom to All - button programmatically in Java Script? Or is there any function with the same functionality?
It is possible by catching button event and add state. You should only check index and set appropriate.
http://jsfiddle.net/jGALb/
chart.rangeSelector.buttons[4].setState(2);
chart.rangeSelector.clickButton(4,4,true);

Resources