Kap: click is no use in linux/win7

Created on 20 Jul 2017  路  5Comments  路  Source: wulkano/Kap

I fork the progrem. and changed some code so that it can run under linux.

but when i click the <header class="kap-header">....</header> part, there was no response.
the <section class="controls">....</section> part is response.

who can tell me the reason?

the progrem in this, you can see the recent commit to find what i remove or change.
and run

npm install
cd app && npm install
cd ..
npm run build && npm start

to run the program.

os : Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux
npm -v : 5.2.0
electron -v : v1.6.11

anyway, thanks.

Question

All 5 comments

You have removed all calls to aperture which is responsible for the screen recording functionality, so this won't work anyway.

Thanks @kevva, I also suggest looking into #31 and https://github.com/wulkano/aperture/pull/32

@kevva @skllcrn I don't need to implement the recording function.
I mean, click events are not use.
If only miss aperture , it should be raise error when I click <header class="kap-header">....</header>,
but i no any response.
The same code, in MAC, works.

i change the kap/app/dist/renderer/views/main.html

<svg fill="#FF6159" height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg" class="record__crop">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</svg>
<svg fill="#FFFFFF" height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg" class="record__stop hidden">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M0 0h24v24H0z"/>
</svg>

to
<button onclick="console.log('button!!!');">click</button>

after npm run build, but when i click the button, no any response.
or is it simply impossible to click.

Or anyone use the UI at windows/linux?

If you're on macOS and -webkit-app-region: drag; is applied to an element, such element will receive click events normally, despite the docs saying the opposite.

On Linux and Windows, however, the element will not receive click events, like mentioned in the docs.

TLDR: apply -webkit-app-region: no-drag; to the elements that need to receive clicks

@matheuss cool,it useful.
thanks very much.
This problem has troubled me for a long time. :smile:

Was this page helpful?
0 / 5 - 0 ratings