bigger pagination button raycast targets (fixes #49)
This commit is contained in:
@@ -6,18 +6,31 @@
|
||||
search-result-list
|
||||
position="0 0.644 0"></a-entity>
|
||||
|
||||
<!-- TODO: Pagination icons. -->
|
||||
<a-mixin id="searchPageButton"
|
||||
animation__mouseenter="property: components.slice9.material.color; type: color; from: #050505; to: #333; startEvents: mouseenter; pauseEvents: mouseleave; dur: 150"
|
||||
animation__mouseleave="property: components.slice9.material.color; type: color; from: #333; to: #050505; startEvents: mouseleave; pauseEvents: mouseenter; dur: 150"
|
||||
mixin="slice"
|
||||
raycaster-target="width: 1; height: 0.32"
|
||||
slice9="width: 0.5; height: 0.08; padding: 0.03"
|
||||
text="align: center; wrapCount: 40; zOffset: 0.001"></a-mixin>
|
||||
|
||||
<a-entity id="searchPrevPage" mixin="searchPageButton" bind-toggle__raycastable="search.hasPrev && menu.active" position="-0.05 0.65 0.01" proxy-event="event: click; to: a-scene; as: searchprevpage" bind__visible="search.hasPrev">
|
||||
<a-entity
|
||||
id="searchPrevPage"
|
||||
mixin="searchPageButton"
|
||||
bind-toggle__raycastable="search.hasPrev && menu.active"
|
||||
raycaster-target="bindToggle: search.hasNext && menu.active; position: 0 0.08 0"
|
||||
position="-0.05 0.65 0.01"
|
||||
proxy-event="event: click; to: a-scene; as: searchprevpage; captureBubbles: true"
|
||||
bind__visible="search.hasPrev">
|
||||
<a-entity geometry="primitive: plane; width: 0.08; height: 0.08" material="shader: flat; src: #downIconImg; transparent: true" rotation="0 0 180" position="0 0 -0.001"></a-entity>
|
||||
</a-entity>
|
||||
<a-entity id="searchNextPage" mixin="searchPageButton" bind-toggle__raycastable="search.hasNext && menu.active" position="-0.05 -0.634 0.01" proxy-event="event: click; to: a-scene; as: searchnextpage" bind__visible="search.hasNext">
|
||||
<a-entity
|
||||
id="searchNextPage"
|
||||
mixin="searchPageButton"
|
||||
raycaster-target="bindToggle: search.hasNext && menu.active; position: 0 -0.08 0"
|
||||
position="-0.05 -0.634 0.01"
|
||||
proxy-event="event: click; to: a-scene; as: searchnextpage; captureBubbles: true"
|
||||
bind__visible="search.hasNext">
|
||||
<a-entity geometry="primitive: plane; width: 0.08; height: 0.08" material="shader: flat; src: #downIconImg; transparent: true" position="0 0 -0.001"></a-entity>
|
||||
</a-entity>
|
||||
{% endmacro %}
|
||||
@@ -200,7 +213,6 @@
|
||||
<a-entity mixin="textFont" text="align: center; color: #AAA; wrapCount: 20; value: SEARCH SONGS" position="0 -0.07 0.01"></a-entity>
|
||||
</a-entity>
|
||||
|
||||
|
||||
<a-entity
|
||||
id="keyboard"
|
||||
bind__super-keyboard="show: keyboardActive"
|
||||
|
||||
Reference in New Issue
Block a user