Skip to content

Commit

Permalink
feat(virtual-panel): change rendering of virtual panel to nearest nei…
Browse files Browse the repository at this point in the history
…ghtbor
  • Loading branch information
sethvoltz committed Apr 12, 2021
1 parent 8ec4aeb commit cc844a5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h3>Micro Panel</h3>
<div>
<img id="micropanel" data-bind="attr: {src: currentImg}" style="width: 400px; border: 5px solid black">
<img id="micropanel" data-bind="attr: {src: currentImg}" style="width: 400px; border: 5px solid black; image-rendering: pixelated;">
</div>
<div>
<button class="btn box" data-bind="click: btnMenu"><b>M</b></button>
Expand All @@ -23,13 +23,13 @@
var options = {
root: document.documentElement,
};
var observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
callback(element, entry.intersectionRatio > 0);
});
}, options);
observer.observe(element);
}
Expand Down

0 comments on commit cc844a5

Please sign in to comment.