Skip to main content

All Questions

0 votes
1 answer
50 views

Is there a CSS selector for the actual text inside an input? (for a "text-indent" alternative) [duplicate]

I have this need to perform animations using transform that will mimic the functionality of text-indent in a text input because animating text-indent ends up jittery/laggy. Doing this on Electron so ...
m4heshd's user avatar
  • 902
2 votes
0 answers
2k views

<img> loading attribute lazy load doesn't work for local images

I'm trying to implement lazy loading logic for images on my Electron desktop app. I wanted to use the <img> element with loading attribute to lazy load images; But, I noticed that it only works ...
RudyC's user avatar
  • 21
0 votes
2 answers
1k views

How to remove the built in media key listeners for HTMLAudioElement (electron) [duplicate]

I have a simple HTMLAudioElement element: let player = new Audio() player.src = 'file://' + _filePath player.load() This pauses and plays by using the play/pause media keys while the windows isn't ...
Joao Sardinha's user avatar
2 votes
1 answer
99 views

How to open my electron program when a link (like myprogram://a/a) is clicked in a web browser

I want to transfer information from my website to my electron program by using a link that has some data in it (like myprogram://data). But can't seem to find any info on the internet about this. Any ...
EGE's user avatar
  • 69
1 vote
1 answer
624 views

Enable GPU accelerated div scrolling

I am trying to make an slideshow animation run smoother on a low-powered device. I can easily make a similar animation run smoothly (60 FPS) by using css transforms and transitions. I believe in that ...
jdm's user avatar
  • 9,880
2 votes
1 answer
475 views

How to change the behavior of Ctrl+Backspace

I'm trying to create a Brainfuck IDE with Electron JS. The text-editing part is a <textarea> HTML element. Right now, when I press Ctrl+Backspace the entire script gets deleted because of what ...
Nelson's user avatar
  • 932
1 vote
0 answers
279 views

How does Chrome handle videos stored in memory?

Im building an application with Electron. My application has hundreds of videos that are activated using the basic HTML5 video play and pause functions. The app sometimes uses as much as 8gb of ...
user2454060's user avatar
1 vote
0 answers
798 views

How to read the contents of files of a folder dragged and dropped in html5

There are many questions in stack overflow and the internet in general regarding this error, however, the context in which most of them are asked and answered does not match mine. I am making a ...
Sean's user avatar
  • 390
4 votes
1 answer
1k views

Is it possible to build a standalone HTML5 App *without* bundling a browser?

Solutions such as Electron require bundling an entire browser with the resulting .app build, which causes it to have several gigabytes even for a single hello world app. Most users already have Chrome ...
MaiaVictor's user avatar
  • 52.4k
8 votes
2 answers
10k views

css border: 1px appear as 0.667px or 1px depending on the computer / display resolution (?)

This is weird. I am testing the same web application (Chrome embedded in Electron) and I have two exact copies in 2 computers, both windows 10, one with a 1080p display and the other with a 4K display ...
GWorking's user avatar
  • 4,211
4 votes
2 answers
840 views

how to drag data (in uri format) from browser to other apps

by using dataTransfer.setData("DownloadURL", "application/octet-stream:fileName.bin:data:application/octet-stream;base64,eNcoDEdFiLEStuFf"); we can download file (written in uri format) to desktop (...
Vijayant Katyal's user avatar